summaryrefslogtreecommitdiffstats
path: root/src/kiosvn/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/kiosvn/CMakeLists.txt')
-rw-r--r--src/kiosvn/CMakeLists.txt51
1 files changed, 32 insertions, 19 deletions
diff --git a/src/kiosvn/CMakeLists.txt b/src/kiosvn/CMakeLists.txt
index 396e8b5..7c77f2a 100644
--- a/src/kiosvn/CMakeLists.txt
+++ b/src/kiosvn/CMakeLists.txt
@@ -1,26 +1,39 @@
-INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/src/svnqt
-${CMAKE_BINARY_DIR}/src/ksvnwidgets)
+#################################################
+#
+# (C) 2011 Timothy Pearson
+# kb9vqf (AT) pearsoncomputing.net
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
-SET(kiosvn_src kiosvn.cpp kiolistener.cpp kiobytestream.cpp ../ksvnwidgets/pwstorage.cpp)
-FILE(GLOB hdr RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h")
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/src
+ ${CMAKE_SOURCE_DIR}/src
+)
-KDE3_ADD_KPART(kio_ksvn ${kiosvn_src} ${hdr})
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
-TARGET_LINK_LIBRARIES(kio_ksvn
- svnqt
- tdesvnhelpers
- tdesvncfgreader
- ${QT_AND_TDECORE_LIBS}
- ${KDE3_UI_LIBRARY} ${KDE3_DCOP_LIBRARY} ${KDE3_KIO_LIBRARY} ${KDE3_WALLET_LIBRARY})
-SET_TARGET_PROPERTIES(kio_ksvn
- PROPERTIES
- LINK_FLAG "${LINK_NO_UNDEFINED} ${_BASE_LDADD}")
+##### kio_ksvn ##################################
-INSTALL(TARGETS kio_ksvn
- LIBRARY DESTINATION ${PLUGIN_INSTALL_DIR})
+file (GLOB hdr RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h")
-FILE(GLOB PROTFILES *.protocol)
+tde_add_kpart( kio_ksvn AUTOMOC
+ SOURCES kiosvn.cpp kiolistener.cpp kiobytestream.cpp ../ksvnwidgets/pwstorage.cpp ${hdr}
+ LINK kio_ksvn svnqt tdesvnhelpers tdesvncfgreader tdecore-shared tdeui-shared DCOP-shared kio-shared kwallet-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
-INSTALL(FILES ${PROTFILES}
- DESTINATION ${SERVICES_INSTALL_DIR})
+
+##### protocol files ############################
+
+file( GLOB PROTFILES *.protocol )
+install( FILES ${PROTFILES} DESTINATION ${SERVICES_INSTALL_DIR} )