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.
libqtxdg-packaging/test/CMakeLists.txt

26 lines
552 B

set(PROJECT_NAME "qtxdg_test")
set(CMAKE_AUTOMOC TRUE)
macro(qtxdg_add_test)
foreach(_testname ${ARGN})
add_executable(${_testname} ${_testname}.cpp)
target_link_libraries(${_testname} Qt5::Test ${QTXDGX_LIBRARY_NAME})
add_test(NAME ${_testname} COMMAND ${_testname})
endforeach()
endmacro()
include_directories (
${CMAKE_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
)
set_property(DIRECTORY APPEND
PROPERTY COMPILE_DEFINITIONS "QTXDG_BUILDING_TESTS=\"1\""
)
qtxdg_add_test(
qtxdg_test
tst_xdgdirs
)