29 lines
647 B
CMake
29 lines
647 B
CMake
if(NOT TARGET_NAME)
|
|
message(WARNING
|
|
"TARGET_NAME needs to be defined because the Catch2 sources will be added to it"
|
|
)
|
|
endif()
|
|
|
|
target_sources(${TARGET_NAME} PRIVATE
|
|
CatchDefinitions.cpp
|
|
CatchFactory.cpp
|
|
printChar.cpp
|
|
)
|
|
|
|
if(FSFW_CUSTOM_UNITTEST_RUNNER)
|
|
target_sources(${TARGET_NAME} PRIVATE
|
|
CatchRunner.cpp
|
|
CatchSetup.cpp
|
|
)
|
|
endif()
|
|
|
|
add_subdirectory(action)
|
|
add_subdirectory(container)
|
|
add_subdirectory(osal)
|
|
add_subdirectory(serialize)
|
|
add_subdirectory(datapoollocal)
|
|
add_subdirectory(storagemanager)
|
|
add_subdirectory(globalfunctions)
|
|
add_subdirectory(timemanager)
|
|
add_subdirectory(tmtcpacket)
|