Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Services/ExerciseManagement/ModuleTests/CMakeLists.txt
T

63 lines
1.4 KiB
CMake
Executable File

#
# $Id$
# $HeadURL$
# $Author$
#
IF(BUILD_TESTING AND TARGET svcExmClient)
SET(SRCS_TEST
exm_tests.cpp
exm_tests.h
)
# Testing DataTopic and FunctionTopic Functionality (DTC+FTC)
ADD_EXECUTABLE(exmTests ${SRCS_TEST})
TARGET_LINK_LIBRARIES(exmTests
Qt6::Core
Qt6::Test
RTI::nddscpp2
svcExmClient
svcAsmClient
LtsCommandLineParser
ddsconnector
nglcoreapplication
)
IF(NOT BUILD_RPM)
NGL_INSTALL(AAR SV TARGETS exmTests DESTINATION bin/test)
NGL_INSTALL(AAR SV FILES ../log4cxx_exm.props DESTINATION bin/test)
ENDIF()
SET(STMT_TEST
exm_statemachine_test.cpp
exm_statemachine_test.h
../dds_handler.cpp
../dds_handler.h
../exercise_state_base.cpp
../exercise_state_base.h
../exercise_state_manager.cpp
../exercise_state_manager.h
../exercise_state_machine.cpp
../exercise_state_machine.h
../object_exercise.cpp
../object_exercise.h
../settings.cpp
../settings.h
)
ADD_EXECUTABLE(exmStateMachineTest ${STMT_TEST})
TARGET_COMPILE_DEFINITIONS(exmStateMachineTest PUBLIC EXM_OBJECT_EXERCISE_NO_HANDLER)
TARGET_LINK_LIBRARIES(exmStateMachineTest
dbAdminCopyExercise
ddsconnector
nglcoreapplication
NGLLogger
ngltools
Qt6::Core
Qt6::Test
svcCoreClient
svcExmCommon
svcExmServer
svcScmClient
svcPpmClient
svcAvmClient
)
ENDIF()