diff --git a/CMakeLists.txt b/CMakeLists.txt index 76b16fcea..3439fd0be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,7 @@ project(S2E # 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 697b2322f..d52c72293 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 @@ -62,6 +61,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} )