diff options
| author | Aotrix <[email protected]> | 2025-03-08 19:37:21 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2025-03-08 19:37:21 +0100 |
| commit | 61425111dc8ac7aca986d87b524d7d4647306e2d (patch) | |
| tree | 5f0aeb61c5baedafa6d8a90dc2003e4fb54650de /CMakeLists.txt | |
| parent | df9887c3887f77f23550a0f02ad5716a0c017993 (diff) | |
added API handler class
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
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) |
