┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/CMakeLists.txt')
-rw-r--r--src/tests/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index 687d68d9c..3edf9ca21 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -1,6 +1,6 @@
if(KDE4_BUILD_TESTS)
- include_directories( ${CMAKE_SOURCE_DIR}/apps/dolphin/src )
+ include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. )
# Tests don't need to go into toplevel/bin, they are fine in the current dir.
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
@@ -11,7 +11,9 @@ if(KDE4_BUILD_TESTS)
kde4_add_executable(renamedialogtest RUN_UNINSTALLED renamedialogtest.cpp)
- target_link_libraries(renamedialogtest dolphin ${QT_QTTEST_LIBRARY})
+ target_link_libraries(renamedialogtest dolphinprivate ${QT_QTTEST_LIBRARY})
+
+ add_test(dolphin-renamedialogtest ${EXECUTABLE_OUTPUT_PATH}/renamedialogtest)
############################################