diff --git a/CMakeLists.txt b/CMakeLists.txt index 76b16fcea..823808347 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,12 +4,13 @@ cmake_minimum_required(VERSION 3.13) project(S2E LANGUAGES CXX DESCRIPTION "S2E: Spacecraft Simulation Environment" - VERSION 7.2.4 + VERSION 7.2.5 ) # build config option(USE_HILS "Use HILS" OFF) option(USE_C2A "Use C2A" OFF) +option(USE_C2A_COMMAND_SENDER "Use command sender to C2A" OFF) option(BUILD_64BIT "Build 64bit" OFF) option(GOOGLE_TEST "Execute GoogleTest" OFF) diff --git a/src/components/CMakeLists.txt b/src/components/CMakeLists.txt index 2cc69c93d..36d90a7b8 100644 --- a/src/components/CMakeLists.txt +++ b/src/components/CMakeLists.txt @@ -25,7 +25,6 @@ real/cdh/on_board_computer_with_c2a.cpp real/communication/antenna.cpp real/communication/antenna_radiation_pattern.cpp real/communication/ground_station_calculator.cpp -real/communication/wings_command_sender_to_c2a.cpp examples/example_change_structure.cpp examples/example_serial_communication_with_obc.cpp @@ -63,6 +62,13 @@ if(USE_HILS) ) endif() +if(USE_C2A_COMMAND_SENDER) + set(SOURCE_FILES + ${SOURCE_FILES} + real/communication/wings_command_sender.cpp + ) +endif() + add_library(${PROJECT_NAME} STATIC ${SOURCE_FILES} )