include_directories( ${PLANODF_INCLUDES} ) # call: planstore_add_unit_test( LINK_LIBRARIES [ [...]] [GUI]) macro(PLANSTORE_ADD_UNIT_TEST _TEST_NAME) ecm_add_test( ${ARGN} TEST_NAME "Plan${_TEST_NAME}" NAME_PREFIX "plan-store-" ) endmacro() ########### next target ############### set(lzftest_SRCS ../KoLZF.cpp TestKoLZF.cpp ) planstore_add_unit_test(TestKoLZF ${lzftest_SRCS} LINK_LIBRARIES Qt::Test) ########### next target ############### set(xmlvectortest_SRCS ../KoLZF.cpp TestKoXmlVector.cpp ) planstore_add_unit_test(TestKoXmlVector ${xmlvectortest_SRCS} LINK_LIBRARIES Qt::Test) ########### next target ############### set(storedroptest_SRCS storedroptest.cpp ) add_executable(Planstoredroptest ${storedroptest_SRCS}) ecm_mark_as_test(Planstoredroptest) target_link_libraries(Planstoredroptest calligraplanstore KF6::I18n Qt::Widgets)