mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Port to new kde4_add_*test* macros
svn path=/trunk/KDE/kdebase/apps/; revision=676863
This commit is contained in:
parent
462c8c65b9
commit
d098f9641a
1 changed files with 5 additions and 13 deletions
|
@ -1,21 +1,13 @@
|
|||
if(KDE4_BUILD_TESTS)
|
||||
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. )
|
||||
|
||||
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. )
|
||||
########### renamedialogtest ###############
|
||||
|
||||
# Tests don't need to go into toplevel/bin, they are fine in the current dir.
|
||||
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
|
||||
kde4_automoc(renamedialogtest.cpp)
|
||||
|
||||
########### renamedialogtest ###############
|
||||
kde4_add_unit_test(renamedialogtest renamedialogtest.cpp)
|
||||
|
||||
kde4_automoc(renamedialogtest.cpp)
|
||||
target_link_libraries(renamedialogtest dolphinprivate ${QT_QTTEST_LIBRARY})
|
||||
|
||||
kde4_add_executable(renamedialogtest RUN_UNINSTALLED renamedialogtest.cpp)
|
||||
|
||||
target_link_libraries(renamedialogtest dolphinprivate ${QT_QTTEST_LIBRARY})
|
||||
|
||||
add_test(dolphin-renamedialogtest ${EXECUTABLE_OUTPUT_PATH}/renamedialogtest)
|
||||
|
||||
############################################
|
||||
|
||||
endif(KDE4_BUILD_TESTS)
|
||||
|
||||
|
|
Loading…
Reference in a new issue