fsfw/misc/defaultcfg/fsfwconfig/CMakeLists.txt

50 lines
1.5 KiB
CMake
Raw Normal View History

if(DEFINED TARGET_NAME)
target_include_directories(${TARGET_NAME} PRIVATE
2021-04-22 18:09:23 +02:00
${CMAKE_CURRENT_SOURCE_DIR}
)
2020-12-07 01:40:10 +01:00
2021-04-22 18:09:23 +02:00
target_sources(${TARGET_NAME} PRIVATE
ipc/missionMessageTypes.cpp
pollingsequence/PollingSequenceFactory.cpp
objects/FsfwFactory.cpp
2021-04-22 18:09:23 +02:00
)
2021-01-01 18:05:02 +01:00
# If a special translation file for object IDs exists, compile it.
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/objects/translateObjects.cpp")
target_sources(${TARGET_NAME} PRIVATE
objects/translateObjects.cpp
)
endif()
# If a special translation file for events exists, compile it.
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/objects/translateObjects.cpp")
target_sources(${TARGET_NAME} PRIVATE
events/translateEvents.cpp
)
endif()
else()
target_include_directories(${LIB_FSFW_NAME} PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
2021-04-22 18:09:23 +02:00
)
target_sources(${LIB_FSFW_NAME} PRIVATE
ipc/missionMessageTypes.cpp
pollingsequence/PollingSequenceFactory.cpp
objects/FsfwFactory.cpp
)
# If a special translation file for object IDs exists, compile it.
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/objects/translateObjects.cpp")
target_sources(${LIB_FSFW_NAME} PRIVATE
objects/translateObjects.cpp
)
endif()
# If a special translation file for events exists, compile it.
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/objects/translateObjects.cpp")
target_sources(${LIB_FSFW_NAME} PRIVATE
events/translateEvents.cpp
)
endif()
2021-04-22 18:09:23 +02:00
endif()