You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
996 B

include(ECMAddTests)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/..)
MACRO(PLASMASHELL_UNIT_TESTS)
FOREACH(_testname ${ARGN})
add_executable(${_testname} ${_testname}.cpp ../screenpool.cpp )
target_link_libraries(${_testname}
Qt5::Test
Qt5::Gui
KF5::Service
)
if(HAVE_X11)
target_link_libraries(${_testname} ${X11_LIBRARIES} ${XCB_LIBRARIES} )
target_link_libraries(${_testname} Qt5::X11Extras)
endif()
if(QT_QTOPENGL_FOUND)
target_link_libraries(${_testname} Qt5::OpenGL)
endif()
add_test(${_testname} ${_testname})
ecm_mark_as_test(${_testname})
ENDFOREACH(_testname)
ENDMACRO(PLASMASHELL_UNIT_TESTS)
PLASMASHELL_UNIT_TESTS(
screenpooltest
)