summaryrefslogtreecommitdiffstats
path: root/src/ksvnwidgets/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/ksvnwidgets/CMakeLists.txt')
-rw-r--r--src/ksvnwidgets/CMakeLists.txt73
1 files changed, 34 insertions, 39 deletions
diff --git a/src/ksvnwidgets/CMakeLists.txt b/src/ksvnwidgets/CMakeLists.txt
index 0e2eabe..063fc95 100644
--- a/src/ksvnwidgets/CMakeLists.txt
+++ b/src/ksvnwidgets/CMakeLists.txt
@@ -1,46 +1,41 @@
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR}/src/svnqt)
+#################################################
+#
+# (C) 2011 Timothy Pearson
+# kb9vqf (AT) pearsoncomputing.net
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
-KDE3_ADD_UI_FILES(
- tdesvn_shared_ui
- logmessage.ui
- ssltrustprompt.ui
- authdlg.ui
- encodingselector.ui
- depthform.ui
- revertform.ui
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/src
+ ${CMAKE_SOURCE_DIR}/src
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/src/svnqt
)
-SET(ksvnwidgetsrc
- authdialogimpl.cpp
- logmsg_impl.cpp
- ssltrustprompt_impl.cpp
- pwstorage.cpp
- diffbrowser.cpp
- diffbrowserdata.cpp
- diffsyntax.cpp
- encodingselector_impl.cpp
- depthselector.cpp
- revertform_impl.cpp
- )
-
-SET(ksvnwidgethdr
- authdialogimpl.h
- logmsg_impl.h
- ssltrustprompt_impl.h
- pwstorage.h
- diffbrowser.h
- diffbrowserdata.h
- diffsyntax.h
- encodingselector_impl.h
- depthselector.h
- revertform_impl.h
+link_directories(
+ ${TQT_LIBRARY_DIRS}
)
-KDE3_AUTOMOC(${ksvnwidgetsrc})
+##### ksvnwidgets ###############################
+
+file (GLOB hdr RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h")
-ADD_LIBRARY(ksvnwidgets STATIC ${ksvnwidgetsrc} ${tdesvn_shared_ui} ${ksvnwidgethdr})
-SET_TARGET_PROPERTIES(ksvnwidgets
- PROPERTIES
- COMPILE_FLAGS ${CMAKE_SHARED_LIBRARY_CXX_FLAGS})
+tde_add_library( ksvnwidgets STATIC AUTOMOC
+ SOURCES authdialogimpl.cpp logmsg_impl.cpp ssltrustprompt_impl.cpp
+ pwstorage.cpp diffbrowser.cpp diffbrowserdata.cpp
+ diffsyntax.cpp encodingselector_impl.cpp depthselector.cpp
+ revertform_impl.cpp tdesvn_shared_ui logmessage.ui
+ ssltrustprompt.ui authdlg.ui encodingselector.ui
+ depthform.ui revertform.ui ${hdr}
+# LINK kio-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
-ADD_DEPENDENCIES(ksvnwidgets tdesvncfgreader)
+ADD_DEPENDENCIES(ksvnwidgets tdesvncfgreader) \ No newline at end of file