Newer
Older
project(ecss_services)
# Set C++ version to c++17
set(CMAKE_CXX_STANDARD 17)
# Specify the directories for #includes
include_directories("${PROJECT_SOURCE_DIR}/inc" "${PROJECT_SOURCE_DIR}/lib/etl/include")
add_custom_target(check
COMMAND ./cppcheck.sh
COMMAND ./vera.sh
COMMAND ./clang-tidy.sh
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/ci")
# Specify the .cpp files common across all targets
add_library(common OBJECT
src/Services/MemoryManagementService.cpp
src/Services/ParameterService.cpp
src/Services/RequestVerificationService.cpp
src/Services/TimeManagementService.cpp
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_SRC "test/**/*.cpp")
add_executable(tests
$<TARGET_OBJECTS:common>