Skip to content

Commit

Permalink
make C2A command sender optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sksat committed Mar 7, 2024
1 parent f81ebf8 commit cc892a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
8 changes: 7 additions & 1 deletion src/components/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
)
Expand Down

0 comments on commit cc892a4

Please sign in to comment.