Skip to content
Snippets Groups Projects
CMakeLists.txt 1.69 KiB
Newer Older
  • Learn to ignore specific revisions
  • kongr45gpen's avatar
    kongr45gpen committed
    cmake_minimum_required(VERSION 3.7)
    
    kongr45gpen's avatar
    kongr45gpen committed
    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")
    
    kongr45gpen's avatar
    kongr45gpen committed
    
    
    add_custom_target(check
            COMMAND ./cppcheck.sh
            COMMAND ./vera.sh
            COMMAND ./clang-tidy.sh
            WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/ci")
    
    
    kongr45gpen's avatar
    kongr45gpen committed
    # Specify the .cpp files for the executables
    
    thodkatz's avatar
    thodkatz committed
    add_executable(ecss_services src/main.cpp src/Message.cpp src/Service.cpp
    
    <<<<<<< CMakeLists.txt
    
            src/Services/TestService.cpp 
            src/Services/RequestVerificationService.cpp
            src/Services/MemoryManagementService.cpp
    
            src/Services/ParameterService.cpp)
    
            src/Services/TestService.cpp
    
            src/Services/RequestVerificationService.cpp)
    
    >>>>>>> CMakeLists.txt
    
    kongr45gpen's avatar
    kongr45gpen committed
    IF(EXISTS "${PROJECT_SOURCE_DIR}/lib/Catch2/CMakeLists.txt")
    
    thodkatz's avatar
    thodkatz committed
        add_subdirectory(lib/Catch2)
    
    thodkatz's avatar
    thodkatz committed
        add_executable(tests src/Message.cpp src/Services/TestService.cpp
    
    <<<<<<< CMakeLists.txt
    
                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)
    
    =======
        src/Services/RequestVerificationService.cpp
        test/tests.cpp test/Message.cpp test/TestPlatform.cpp test/Services/TestService.cpp
        test/Services/RequestVerificationService.cpp)
    >>>>>>> CMakeLists.txt
    
    thodkatz's avatar
    thodkatz committed
        target_link_libraries(tests Catch2::Catch2)