From 61425111dc8ac7aca986d87b524d7d4647306e2d Mon Sep 17 00:00:00 2001 From: Aotrix Date: Sat, 8 Mar 2025 19:37:21 +0100 Subject: added API handler class --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 90d662c..e601a7e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,5 +16,8 @@ find_package(Catch2 3 REQUIRED) add_executable(tests src/tests/tests.cpp) target_link_libraries(tests PRIVATE Catch2::Catch2WithMain pqxx pq curl) -add_executable(${FNAME} src/main.cpp) +file(GLOB SRC_FILES ${PROJECT_SOURCE_DIR}/src/*.cpp) +file(GLOB INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include) +add_executable(${FNAME} ${SRC_FILES}) +target_include_directories(${FNAME} PRIVATE ${INCLUDE_DIR}) target_link_libraries(${FNAME} pqxx pq curl) -- cgit v1.2.3