- More cmake cleanup

This commit is contained in:
Ian Roddis
2021-08-13 13:21:55 -03:00
parent 71344b3a2a
commit 35857f9513
6 changed files with 33 additions and 42 deletions

View File

@@ -1,5 +1,4 @@
project(rest_server)
file(GLOB SOURCES *.cpp)
add_executable(${PROJECT_NAME} ${SOURCES})
target_link_libraries(${PROJECT_NAME} daggy stdc++fs rapidjson pistache argparse)
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "daggy")
target_link_libraries(${PROJECT_NAME} pistache stdc++fs rapidjson argparse daggy)

View File

@@ -1,7 +1,7 @@
#include <iostream>
#include <fstream>
#include <argoarse/argparse.hpp>
#include <argparse.hpp>
#include <daggy/Server.hpp>
#include <daggy/executors/task/ForkingTaskExecutor.hpp>
@@ -19,5 +19,5 @@ int main(int argc, char **argv) {
.help("Port to listen to")
.action([](const std::string &value) { return std::stoi(value); });
daggy::Server endpoint;
// daggy::Server endpoint(10);
}