plasma-framework/autotests/CMakeLists.txt

41 lines
1.4 KiB
CMake
Raw Normal View History

set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
include(ECMMarkAsTest)
2013-12-11 14:01:52 +01:00
find_package(KF5CoreAddons REQUIRED)
2013-03-05 14:43:14 +01:00
# add_definitions( -DKDESRCDIR=${CMAKE_CURRENT_SOURCE_DIR} )
MACRO(PLASMA_UNIT_TESTS)
FOREACH(_testname ${ARGN})
add_executable(${_testname} ${_testname}.cpp)
target_link_libraries(${_testname} Qt5::Test Qt5::Declarative
2013-12-11 14:01:52 +01:00
KF5::Plasma KF5::Archive KF5::CoreAddons
KF5::ConfigGui
KF5::I18n
KF5::KIOCore
2013-12-11 14:01:52 +01:00
KF5::Service)
2011-03-25 16:33:11 +01:00
if(QT_QTOPENGL_FOUND)
target_link_libraries(${_testname} Qt5::OpenGL)
endif()
add_test(plasma-${_testname} ${_testname})
ecm_mark_as_test(${_testname})
ENDFOREACH(_testname)
ENDMACRO(PLASMA_UNIT_TESTS)
PLASMA_UNIT_TESTS(
2011-05-26 15:13:15 +02:00
configloadertest
packagestructuretest
2013-09-12 01:31:37 +02:00
pluginloadertest
# plasmoidpackagetest
)
2011-04-28 15:19:42 +02:00
2014-02-10 15:17:07 +01:00
add_executable(storagetest storagetest.cpp ../src/plasma/private/storage.cpp ../src/plasma/private/storagethread.cpp)
2013-12-11 14:01:52 +01:00
target_link_libraries(storagetest Qt5::Test Qt5::Declarative Qt5::Sql KF5::KIOCore KF5::Plasma KF5::CoreAddons )
add_test(plasma-storagetest storagetest)
ecm_mark_as_test(storagetest)
2011-04-28 15:19:42 +02:00
if(QT_QTOPENGL_FOUND)
target_link_libraries(storagetest Qt5::OpenGL)
endif()