summaryrefslogtreecommitdiffstats
path: root/src/kiosvn
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-26 20:37:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-26 20:37:40 -0600
commita9fbdbd29b32151d366123ca637b2a06736d6e05 (patch)
tree9e86b48f7f6e776dcd9a1edea7705bfc93fd4a8d /src/kiosvn
parent094b95b8a8d3d52ea4ce9035f8246dcdf054c7f5 (diff)
downloadtdesvn-a9fbdbd29b32151d366123ca637b2a06736d6e05.tar.gz
tdesvn-a9fbdbd29b32151d366123ca637b2a06736d6e05.zip
Initial attempt at using the standard CMake system
Diffstat (limited to 'src/kiosvn')
-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} )