Skip to content

Commit

Permalink
build: use src as library name
Browse files Browse the repository at this point in the history
  • Loading branch information
csirianni committed Oct 24, 2023
1 parent ddb990a commit 809007e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
find_package(Crow REQUIRED)
find_package(SQLite3 REQUIRED)

add_library(database database.cpp password.cpp)
add_library(src database.cpp password.cpp)

add_executable(server main.cpp)

target_link_libraries(server Crow::Crow SQLite::SQLite3 database)
target_link_libraries(server Crow::Crow SQLite::SQLite3 src)

target_include_directories(server PRIVATE src)
2 changes: 1 addition & 1 deletion backend/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ set (TEST_SOURCE

add_executable(pdl_test ${TEST_SOURCE})

target_link_libraries(pdl_test Catch2::Catch2WithMain database)
target_link_libraries(pdl_test src Catch2::Catch2WithMain)

target_include_directories(pdl_test PUBLIC ${CMAKE_SOURCE_DIR}/src)

0 comments on commit 809007e

Please sign in to comment.