summaryrefslogtreecommitdiffstats
path: root/src/settings
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/settings
parent094b95b8a8d3d52ea4ce9035f8246dcdf054c7f5 (diff)
downloadtdesvn-a9fbdbd29b32151d366123ca637b2a06736d6e05.tar.gz
tdesvn-a9fbdbd29b32151d366123ca637b2a06736d6e05.zip
Initial attempt at using the standard CMake system
Diffstat (limited to 'src/settings')
-rw-r--r--src/settings/CMakeLists.txt82
1 files changed, 41 insertions, 41 deletions
diff --git a/src/settings/CMakeLists.txt b/src/settings/CMakeLists.txt
index 7894082..d4c9b4a 100644
--- a/src/settings/CMakeLists.txt
+++ b/src/settings/CMakeLists.txt
@@ -1,50 +1,50 @@
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
-
-KDE3_ADD_KCFG_FILES(cfgsrc
- tdesvnsettings.kcfgc)
-ADD_LIBRARY(tdesvncfgreader STATIC ${cfgsrc})
-
-KDE3_ADD_UI_FILES(
- settings_ui_sources
- dispcolor_settings.ui
- display_settings.ui
- revisiontree_settings.ui
- subversion_settings.ui
- cmdexecsettings.ui
- diffmergesettings.ui
+#################################################
+#
+# (C) 2011 Timothy Pearson
+# kb9vqf (AT) pearsoncomputing.net
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/src
+ ${CMAKE_SOURCE_DIR}/src
+ ${CMAKE_CURRENT_BINARY_DIR}
)
-SET(settings_sources
- dispcolorsettings_impl.cpp
- displaysettings_impl.cpp
- revisiontreesettingsdlg_impl.cpp
- subversionsettings_impl.cpp
- cmdexecsettings_impl.cpp
- diffmergesettings_impl.cpp)
-
-FILE(GLOB hdr RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h")
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
-KDE3_AUTOMOC(${settings_sources})
-ADD_LIBRARY(settingsdlgs STATIC ${settings_ui_sources} ${settings_sources} ${hdr})
-ADD_DEPENDENCIES(settingsdlgs tdesvncfgreader)
-SET_TARGET_PROPERTIES(tdesvncfgreader settingsdlgs
- PROPERTIES
- COMPILE_FLAGS ${CMAKE_SHARED_LIBRARY_CXX_FLAGS})
+##### tdesvncfgreader ###########################
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/tdesvn_part.kcfg DESTINATION ${KCFG_INSTALL_DIR})
+file (GLOB hdr RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h")
-INSTALL(
- FILES
- ${CMAKE_CURRENT_SOURCE_DIR}/tdesvnpartrc-use-external.upd
- DESTINATION
- ${DATA_INSTALL_DIR}/kconf_update
+tde_add_library( tdesvncfgreader STATIC AUTOMOC
+ SOURCES settings_ui_sources dispcolor_settings.ui
+ display_settings.ui revisiontree_settings.ui
+ subversion_settings.ui cmdexecsettings.ui
+ diffmergesettings.ui dispcolorsettings_impl.cpp
+ displaysettings_impl.cpp revisiontreesettingsdlg_impl.cpp
+ subversionsettings_impl.cpp cmdexecsettings_impl.cpp
+ diffmergesettings_impl.cpp tdesvnsettings.kcfgc ${hdr}
+# LINK kio-shared
+ DESTINATION ${LIB_INSTALL_DIR}
)
-INSTALL(
- FILES
- ${CMAKE_CURRENT_SOURCE_DIR}/tdesvn-use-external-update.sh
- DESTINATION
- ${DATA_INSTALL_DIR}/kconf_update
- PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ
+
+##### data files ################################
+
+install( FILES ${CMAKE_CURRENT_SOURCE_DIR}/tdesvn_part.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
+install( FILES ${CMAKE_CURRENT_SOURCE_DIR}/tdesvnpartrc-use-external.upd DESTINATION ${DATA_INSTALL_DIR}/kconf_update )
+install( FILES ${CMAKE_CURRENT_SOURCE_DIR}/tdesvn-use-external-update.sh
+ DESTINATION ${DATA_INSTALL_DIR}/kconf_update
+ PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ
)