summaryrefslogtreecommitdiff
path: root/kimap/tests/kimaptest/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'kimap/tests/kimaptest/CMakeLists.txt')
-rw-r--r--kimap/tests/kimaptest/CMakeLists.txt12
1 files changed, 5 insertions, 7 deletions
diff --git a/kimap/tests/kimaptest/CMakeLists.txt b/kimap/tests/kimaptest/CMakeLists.txt
index 80723fa..cc11183 100644
--- a/kimap/tests/kimaptest/CMakeLists.txt
+++ b/kimap/tests/kimaptest/CMakeLists.txt
@@ -1,7 +1,5 @@
project(kimaptest)
-if(KDE4_BUILD_TESTS)
-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
set(kimaptest_LIB_SRCS
@@ -9,9 +7,11 @@ set(kimaptest_LIB_SRCS
mockjob.cpp
)
-kde4_add_library(kimaptest STATIC ${kimaptest_LIB_SRCS})
-target_link_libraries(kimaptest ${KDE4_KDECORE_LIBS} ${QT_QTNETWORK_LIBRARY} ${QT_QTTEST_LIBRARY} kimap)
-install(TARGETS kimaptest ${INSTALL_TARGETS_DEFAULT_ARGS})
+find_package(Qt4 4.6.0 REQUIRED)
+include_directories(${QT_INCLUDES})
+add_library(calendaring-kimaptest STATIC ${kimaptest_LIB_SRCS})
+target_link_libraries(calendaring-kimaptest ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${QT_QTTEST_LIBRARY} calendaring-kimap)
+install(TARGETS calendaring-kimaptest ${INSTALL_TARGETS_DEFAULT_ARGS})
########### install files ###############
@@ -20,5 +20,3 @@ install(FILES
mockjob.h
DESTINATION ${INCLUDE_INSTALL_DIR}/kimaptest COMPONENT Devel)
-endif()
-