eive-obsw/bsp_hosted/fsfwconfig/CMakeLists.txt

28 lines
770 B
CMake
Raw Normal View History

target_sources(${OBSW_NAME} PRIVATE
2020-12-29 01:09:59 +01:00
ipc/MissionMessageTypes.cpp
)
target_include_directories(${OBSW_NAME} PUBLIC
2020-12-29 01:09:59 +01:00
${CMAKE_CURRENT_SOURCE_DIR}
)
# If a special translation file for object IDs exists, compile it.
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/objects/translateObjects.cpp")
target_sources(${OBSW_NAME} PRIVATE
objects/translateObjects.cpp
)
target_sources(${UNITTEST_NAME} PRIVATE
objects/translateObjects.cpp
)
endif()
2020-12-29 01:09:59 +01:00
# If a special translation file for events exists, compile it.
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/objects/translateObjects.cpp")
target_sources(${OBSW_NAME} PRIVATE
events/translateEvents.cpp
)
target_sources(${UNITTEST_NAME} PRIVATE
events/translateEvents.cpp
)
endif()