Port to new kde4_add_*test* macros

svn path=/trunk/KDE/kdebase/apps/; revision=676863
This commit is contained in:
Andreas Pakulat 2007-06-17 21:14:54 +00:00
parent 462c8c65b9
commit d098f9641a

View file

@ -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)