summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
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)