2022-02-09 21:38:56 +01:00
|
|
|
target_sources(${OBSW_NAME} PRIVATE
|
2020-12-29 01:09:59 +01:00
|
|
|
ipc/MissionMessageTypes.cpp
|
|
|
|
)
|
|
|
|
|
2022-02-09 21:38:56 +01:00
|
|
|
target_include_directories(${OBSW_NAME} PUBLIC
|
2020-12-29 01:09:59 +01:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
2021-05-17 19:51:38 +02:00
|
|
|
# If a special translation file for object IDs exists, compile it.
|
|
|
|
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/objects/translateObjects.cpp")
|
2022-02-09 21:38:56 +01:00
|
|
|
target_sources(${OBSW_NAME} PRIVATE
|
2021-05-17 19:51:38 +02:00
|
|
|
objects/translateObjects.cpp
|
|
|
|
)
|
2022-02-16 18:15:06 +01:00
|
|
|
target_sources(${UNITTEST_NAME} PRIVATE
|
|
|
|
objects/translateObjects.cpp
|
|
|
|
)
|
2021-05-17 19:51:38 +02:00
|
|
|
endif()
|
2020-12-29 01:09:59 +01:00
|
|
|
|
2021-05-17 19:51:38 +02:00
|
|
|
# If a special translation file for events exists, compile it.
|
|
|
|
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/objects/translateObjects.cpp")
|
2022-02-09 21:38:56 +01:00
|
|
|
target_sources(${OBSW_NAME} PRIVATE
|
2021-05-17 19:51:38 +02:00
|
|
|
events/translateEvents.cpp
|
|
|
|
)
|
2022-02-16 18:15:06 +01:00
|
|
|
target_sources(${UNITTEST_NAME} PRIVATE
|
|
|
|
events/translateEvents.cpp
|
|
|
|
)
|
2021-05-17 19:51:38 +02:00
|
|
|
endif()
|