diff options
| author | Aotrix <[email protected]> | 2025-06-29 02:16:13 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2025-06-29 02:16:13 +0200 |
| commit | 4167f92f3d36b7384c4c5f8bf7501bba52e91a0c (patch) | |
| tree | 7cbccb75c24ddb1d256a1e3b78d05c0ca7dcbd7c /CMakeLists.txt | |
| parent | a61305a4f779d72ebf01bf1c4b0d4c9244d23236 (diff) | |
refactoring and added start menu
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f2a7f51..34ad282 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,3 @@ -# CMakeLists.txt for a single file project cmake_minimum_required(VERSION 3.15) get_filename_component(FNAME ${CMAKE_SOURCE_DIR} NAME) @@ -6,6 +5,7 @@ set(ProjectName ${FNAME}) project(${ProjectName} LANGUAGES CXX) +set(CMAKE_COMPILE_COMMANDS ON) set(CMAKE_CXX_STANDARD 20) set(CXX_STANDARD_REQUIRED ON) set(CMAKE_BUILD_TYPE Debug) @@ -19,7 +19,6 @@ file(GLOB INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include) add_executable(tests ${SRC_FILES} ${SRC_TESTS_FILES}) target_include_directories(tests PRIVATE ${INCLUDE_DIR}) target_link_libraries(tests PRIVATE Catch2::Catch2WithMain pqxx pq curl) - add_executable(${FNAME} ${SRC_FILES}) target_include_directories(${FNAME} PRIVATE ${INCLUDE_DIR}) target_link_libraries(${FNAME} pqxx pq curl) |
