Commit daabc8a1 authored by Andreas Pakulat's avatar Andreas Pakulat
Browse files

Port to new kde4_add_*test* macros

svn path=/trunk/KDE/kdebase/apps/; revision=676863
parent f7aa3e97
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)
if(KDE4_BUILD_TESTS)
include_directories( ${CMAKE_SOURCE_DIR}/libkonq ${KDE4_INCLUDES} )
include_directories( ${CMAKE_SOURCE_DIR}/libkonq ${KDE4_INCLUDES} )
########### konqviewmgrtest ###############
# 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(konqviewmgrtest.cpp)
########### konqviewmgrtest ###############
kde4_add_test_executable(konqviewmgrtest konqviewmgrtest.cpp)
kde4_automoc(konqviewmgrtest.cpp)
target_link_libraries(konqviewmgrtest konq ${KDE4_KDECORE_LIBS} ${QT_QTTEST_LIBRARY})
kde4_add_executable(konqviewmgrtest RUN_UNINSTALLED konqviewmgrtest.cpp)
############################################
target_link_libraries(konqviewmgrtest konq ${KDE4_KDECORE_LIBS} ${QT_QTTEST_LIBRARY})
############################################
endif(KDE4_BUILD_TESTS)
include_directories( ${CMAKE_SOURCE_DIR}/libkonq )
if(KDE4_BUILD_TESTS)
########### konqmimedatatest ###############
include_directories( ${CMAKE_SOURCE_DIR}/libkonq )
kde4_automoc(konqmimedatatest.cpp)
# 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_add_unit_test(konqmimedatatest konqmimedatatest.cpp)
########### konqmimedatatest ###############
target_link_libraries(konqmimedatatest konq ${QT_QTTEST_LIBRARY})
kde4_automoc(konqmimedatatest.cpp)
########### konqundomanager ###############
kde4_add_executable(konqmimedatatest RUN_UNINSTALLED konqmimedatatest.cpp)
kde4_automoc(konqundomanagertest.cpp)
target_link_libraries(konqmimedatatest konq ${QT_QTTEST_LIBRARY})
kde4_add_unit_test(konqundomanagertest konqundomanagertest.cpp)
add_test(libkonq-konqmimedatatest konqmimedatatest)
target_link_libraries(konqundomanagertest konq ${QT_QTTEST_LIBRARY})
########### konqundomanager ###############
########### favicontest ###############
kde4_automoc(konqundomanagertest.cpp)
kde4_automoc(favicontest.cpp)
kde4_add_executable(konqundomanagertest RUN_UNINSTALLED konqundomanagertest.cpp)
kde4_add_unit_test(favicontest favicontest.cpp)
target_link_libraries(konqundomanagertest konq ${QT_QTTEST_LIBRARY})
target_link_libraries(favicontest konq ${QT_QTTEST_LIBRARY})
add_test(libkonq-konqundomanagertest konqundomanagertest)
########### historymgrtest ###############
########### favicontest ###############
kde4_automoc(historymgrtest.cpp)
kde4_automoc(favicontest.cpp)
kde4_add_unit_test(historymgrtest historymgrtest.cpp)
kde4_add_executable(favicontest RUN_UNINSTALLED favicontest.cpp)
target_link_libraries(favicontest konq ${QT_QTTEST_LIBRARY})
add_test(libkonq-favicontest favicontest)
########### historymgrtest ###############
kde4_automoc(historymgrtest.cpp)
kde4_add_executable(historymgrtest RUN_UNINSTALLED historymgrtest.cpp)
target_link_libraries(historymgrtest konq ${QT_QTTEST_LIBRARY})
add_test(libkonq-historymgrtest historymgrtest)
############################################
endif(KDE4_BUILD_TESTS)
target_link_libraries(historymgrtest konq ${QT_QTTEST_LIBRARY})
############################################
if(KDE4_BUILD_TESTS)
include_directories( ${CMAKE_SOURCE_DIR}/libltdl ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/../ )
########### next target ###############
......@@ -20,9 +19,8 @@ QT4_ADD_DBUS_INTERFACE( testnsplugin_SRCS ${nsplugins_viewer_xml} nsplugins_view
kde4_automoc(${testnsplugin_SRCS})
kde4_add_executable(testnsplugin ${testnsplugin_SRCS})
kde4_add_test_executable(testnsplugin ${testnsplugin_SRCS})
target_link_libraries(testnsplugin ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KPARTS_LIBS} ${QT_QT3SUPPORT_LIBRARY} ${QT_QTGUI_LIBRARY} )
endif(KDE4_BUILD_TESTS)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment