Fixed libqt5xdgiconloader-dev.install Reworked descriptions in debian/control to prevent lintian whining Fixed symbols version Fixed copyright for xdgiconloader Fixed package descrioptions Introduced the new package libqt5xdgiconloader1 Bumped standards to 3.9.8, no changes needed Symbols sorted and unified Bump years in copyright Added hardening=+all Added README.md to debian/docs set CMAKE_BUILD_TYPE=RelWithDebInfo
32 lines
662 B
CMake
32 lines
662 B
CMake
set(PROJECT_NAME "qtxdg_test")
|
|
|
|
remove_definitions(
|
|
-DQT_USE_QSTRINGBUILDER
|
|
-DQT_NO_CAST_FROM_ASCII
|
|
)
|
|
|
|
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}/qtxdg"
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
)
|
|
|
|
set_property(DIRECTORY APPEND
|
|
PROPERTY COMPILE_DEFINITIONS "QTXDG_BUILDING_TESTS=\"1\""
|
|
)
|
|
|
|
qtxdg_add_test(
|
|
qtxdg_test
|
|
tst_xdgdirs
|
|
tst_xdgdesktopfile
|
|
)
|