-
Grigoris Pavlakis authored
Fix a blunder with the test version of call() Attempt to calm down clang-tidy and fix some stupid warnings in my CRC code (nothing much, just turned the counter int in a for-loop into a uint32_t to shut gcc up) Comment out the empty constructor to mute clang-tidy's warning about trivial constructors
Grigoris Pavlakis authoredFix a blunder with the test version of call() Attempt to calm down clang-tidy and fix some stupid warnings in my CRC code (nothing much, just turned the counter int in a for-loop into a uint32_t to shut gcc up) Comment out the empty constructor to mute clang-tidy's warning about trivial constructors
CMakeLists.txt 1.55 KiB
cmake_minimum_required(VERSION 3.7)
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/ErrorHandler.cpp
src/Message.cpp
src/MessageParser.cpp
src/Helpers/CRCHelper.cpp
src/Helpers/TimeHelper.cpp
src/Services/EventReportService.cpp
src/Services/MemoryManagementService.cpp
src/Services/ParameterService.cpp
src/Services/RequestVerificationService.cpp
src/Services/TestService.cpp
src/Services/TimeManagementService.cpp
src/Services/FunctionManagementService.cpp)
# Specify the .cpp files for the executables
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
$<TARGET_OBJECTS:common>
${test_main_SRC}
${test_SRC} test/Services/FunctionManagementService.cpp)
target_link_libraries(tests Catch2::Catch2)
ENDIF ()