Skip to content
Snippets Groups Projects
Commit 7f4c6679 authored by athatheocsd's avatar athatheocsd
Browse files

Merge remote-tracking branch 'origin/master' into ECSS_ST-05

parents 46d49e51 4757c15c
No related branches found
No related tags found
No related merge requests found
......@@ -13,23 +13,33 @@ add_custom_target(check
COMMAND ./clang-tidy.sh
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/ci")
# Specify the .cpp files common across all targets
add_library(common OBJECT
src/Message.cpp
src/Services/EventReportService.cpp
src/Services/MemoryManagementService.cpp
src/Services/ParameterService.cpp
src/Services/RequestVerificationService.cpp
src/Services/TestService.cpp
)
# Specify the .cpp files for the executables
add_executable(ecss_services src/main.cpp src/Message.cpp src/Service.cpp
src/Services/TestService.cpp
src/Services/RequestVerificationService.cpp
src/Services/MemoryManagementService.cpp
src/Services/ParameterService.cpp
src/Services/EventReportService.cpp
inc/Services/EventReportService.hpp)
add_executable(ecss_services
src/main.cpp
$<TARGET_OBJECTS:common>
src/Platform/x86/Service.cpp
)
IF (EXISTS "${PROJECT_SOURCE_DIR}/lib/Catch2/CMakeLists.txt")
# Gather all the .cpp files corresponding to tests
file(GLOB test_main_SRC "test/*.cpp")
file(GLOB test_SRC "test/**/*.cpp")
add_subdirectory(lib/Catch2)
add_executable(tests src/Message.cpp src/Services/TestService.cpp
src/Services/RequestVerificationService.cpp src/Services/ParameterService.cpp
src/Services/MemoryManagementService.cpp test/tests.cpp test/Message.cpp
test/TestPlatform.cpp test/Services/TestService.cpp
test/Services/RequestVerificationService.cpp
test/Services/ParameterService.cpp test/Services/MemoryManagementService.cpp)
add_executable(tests
$<TARGET_OBJECTS:common>
${test_main_SRC}
${test_SRC})
target_link_libraries(tests Catch2::Catch2)
ENDIF ()
ENDIF()
This folder contains platform-specific files:
- **x86**: Files to be run on a PC with a proper operating system
\ No newline at end of file
File moved
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