20 lines
810 B
CMake
20 lines
810 B
CMake
if (Qt5Test_FOUND)
|
|
|
|
#=======================================
|
|
# Test SubstitutionField class
|
|
#=======================================
|
|
qt5_wrap_cpp (TestSubstitutionField_moc_sources TestSubstitutionField.h)
|
|
add_executable (TestSubstitutionField TestSubstitutionField.cpp ${TestSubstitutionField_moc_sources})
|
|
target_link_libraries (TestSubstitutionField Model Qt5::Test)
|
|
add_test (NAME SubstitutionField COMMAND TestSubstitutionField)
|
|
|
|
#=======================================
|
|
# Test XmlUtil class
|
|
#=======================================
|
|
qt5_wrap_cpp (TestXmlUtil_moc_sources TestXmlUtil.h)
|
|
add_executable (TestXmlUtil TestXmlUtil.cpp ${TestXmlUtil_moc_sources})
|
|
target_link_libraries (TestXmlUtil Model Qt5::Test)
|
|
add_test (NAME XmlUtil COMMAND TestXmlUtil)
|
|
|
|
endif (Qt5Test_FOUND)
|