Skip to content
Snippets Groups Projects
Commit e5e56ee0 authored by kongr45gpen's avatar kongr45gpen
Browse files

Fix the build

parent 43baa247
No related branches found
No related tags found
No related merge requests found
...@@ -17,21 +17,26 @@ add_custom_target(check ...@@ -17,21 +17,26 @@ add_custom_target(check
add_library(common OBJECT add_library(common OBJECT
src/Message.cpp src/Message.cpp
src/Services/RequestVerificationService.cpp src/Services/RequestVerificationService.cpp
src/Services/TestService.cpp) src/Services/TestService.cpp
)
# Specify the .cpp files for the executables # Specify the .cpp files for the executables
add_executable(ecss_services add_executable(ecss_services
src/main.cpp src/main.cpp
$<TARGET_OBJECTS:common> $<TARGET_OBJECTS:common>
src/Platform/x86/Service.cpp) src/Platform/x86/Service.cpp
)
IF (EXISTS "${PROJECT_SOURCE_DIR}/lib/Catch2/CMakeLists.txt") IF (EXISTS "${PROJECT_SOURCE_DIR}/lib/Catch2/CMakeLists.txt")
# Gather all the .cpp files corresponding to tests # Gather all the .cpp files corresponding to tests
file(GLOB test_main_SRC "test/*.cpp")
file(GLOB test_SRC "test/**/*.cpp") file(GLOB test_SRC "test/**/*.cpp")
add_subdirectory(lib/Catch2) add_subdirectory(lib/Catch2)
add_executable(tests add_executable(tests
$<TARGET_OBJECTS:common> $<TARGET_OBJECTS:common>
${test_main_SRC}
${test_SRC}) ${test_SRC})
target_link_libraries(tests Catch2::Catch2) target_link_libraries(tests Catch2::Catch2)
ENDIF () ENDIF ()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment