summaryrefslogtreecommitdiffstats
path: root/conduits/knotes
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-01-03 03:54:42 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-01-03 03:54:42 +0100
commit0ef4ca6d362d2a6d8a3821e2f47a7d141fbcd3a9 (patch)
tree0896cb2e2c5d4203af2b498f05d3ed2b66aaef5b /conduits/knotes
parentc2446367dbf7826bdd45ff8a943b408c1b7097d8 (diff)
downloadkpilot-0ef4ca6d362d2a6d8a3821e2f47a7d141fbcd3a9.tar.gz
kpilot-0ef4ca6d362d2a6d8a3821e2f47a7d141fbcd3a9.zip
Migration to standard TDE CMake build system.
Add common cmake module. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'conduits/knotes')
-rw-r--r--conduits/knotes/CMakeLists.txt60
1 files changed, 23 insertions, 37 deletions
diff --git a/conduits/knotes/CMakeLists.txt b/conduits/knotes/CMakeLists.txt
index efdafbb..60941a0 100644
--- a/conduits/knotes/CMakeLists.txt
+++ b/conduits/knotes/CMakeLists.txt
@@ -1,52 +1,38 @@
-include_directories(
- ${CMAKE_CURRENT_BINARY_DIR}
-)
-
-set(conduit_knotes_SRCS
- knotes-factory.cc
- knotes-setup.cc
- knotes-action.cc
-)
-set(conduit_knotes_UIS
- setup_base.ui
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/lib
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
)
-set(conduit_knotes_KCFGS
- knotesconduitSettings.kcfgc
+link_directories(
+ ${TQT_LIBRARY_DIRS}
)
-#set(conduit_knotes_STUBS
-# KNotesIface.h
-#)
-
-#kde3_add_dcop_skels(conduit_knotes_SRCS ${conduit_knotes_STUBS})
-#kde3_add_dcop_stubs(conduit_knotes_SRCS ${conduit_knotes_STUBS})
+tde_import( libkmime )
+tde_import( ktnef )
+tde_import( libkcal )
-kde3_add_kcfg_files(conduit_knotes_SRCS ${conduit_knotes_KCFGS})
-trinity_add_ui_files(conduit_knotes_SRCS ${conduit_knotes_UIS})
-trinity_automoc(${conduit_knotes_SRCS})
-add_library(conduit_knotes SHARED ${conduit_knotes_SRCS})
-target_link_libraries(conduit_knotes kcal)
+##### conduit_knotes (kpart) ####################
-set_target_properties(conduit_knotes PROPERTIES
- LOCATION ${KDE3_PLUGIN_INSTALL_DIR}
- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
- PREFIX ""
+tde_add_kpart( conduit_knotes AUTOMOC
+ SOURCES knotesconduitSettings.kcfgc knotes-factory.cc
+ knotes-setup.cc knotes-action.cc setup_base.ui
+ LINK kpilot-shared tdeui-shared kcal-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
)
-trinity_install_libtool_file(conduit_knotes)
-install(
- TARGETS conduit_knotes
- LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR}
-)
+##### other data ################################
-install(
- FILES knotes-conduit.desktop DESTINATION ${KDE3_SERVICES_DIR}
+install( FILES knotes-conduit.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
)
-install(
- FILES knotesconduit.kcfg DESTINATION ${KDE3_KCFG_DIR}
+install( FILES knotesconduit.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
)