summaryrefslogtreecommitdiffstats
path: root/conduits/timeconduit
diff options
context:
space:
mode:
Diffstat (limited to 'conduits/timeconduit')
-rw-r--r--conduits/timeconduit/CMakeLists.txt50
1 files changed, 20 insertions, 30 deletions
diff --git a/conduits/timeconduit/CMakeLists.txt b/conduits/timeconduit/CMakeLists.txt
index abf1e27..6392387 100644
--- a/conduits/timeconduit/CMakeLists.txt
+++ b/conduits/timeconduit/CMakeLists.txt
@@ -1,44 +1,34 @@
-include_directories(
- ${CMAKE_CURRENT_BINARY_DIR}
-)
-
-set(conduit_time_SRCS
- time-conduit.cc
- time-factory.cc
- time-setup.cc
-)
-set(conduit_time_UIS
- time-setup_dialog.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_time_KCFGS
- timeConduitSettings.kcfgc
+link_directories(
+ ${TQT_LIBRARY_DIRS}
)
-kde3_add_kcfg_files(conduit_time_SRCS ${conduit_time_KCFGS})
-trinity_add_ui_files(conduit_time_SRCS ${conduit_time_UIS})
-trinity_automoc(${conduit_time_SRCS})
-add_library(conduit_time SHARED ${conduit_time_SRCS})
-kpilot_rpath(conduit_time)
+##### conduit_time (kpart) ######################
-set_target_properties(
- conduit_time PROPERTIES LOCATION ${KDE3_PLUGIN_INSTALL_DIR}
- PREFIX ""
+tde_add_kpart( conduit_time AUTOMOC
+ SOURCES timeConduitSettings.kcfgc time-factory.cc time-setup.cc
+ time-conduit.cc time-setup_dialog.ui
+ LINK kpilot-shared tdeui-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
)
-trinity_install_libtool_file(conduit_time)
-install(
- TARGETS conduit_time
- LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR}
-)
+##### other data ################################
-install(
- FILES time_conduit.desktop DESTINATION ${KDE3_SERVICES_DIR}
+install( FILES time_conduit.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
)
-install(
- FILES timeconduit.kcfg DESTINATION ${KDE3_KCFG_DIR}
+install( FILES timeconduit.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
)