summaryrefslogtreecommitdiffstats
path: root/conduits/notepadconduit/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'conduits/notepadconduit/CMakeLists.txt')
-rw-r--r--conduits/notepadconduit/CMakeLists.txt44
1 files changed, 18 insertions, 26 deletions
diff --git a/conduits/notepadconduit/CMakeLists.txt b/conduits/notepadconduit/CMakeLists.txt
index d654a6a..6d3ba8c 100644
--- a/conduits/notepadconduit/CMakeLists.txt
+++ b/conduits/notepadconduit/CMakeLists.txt
@@ -1,38 +1,30 @@
+
include_directories(
- ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/lib
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
)
-set(conduit_notepad_SRCS
- notepad-factory.cc
- notepad-conduit.cc
+link_directories(
+ ${TQT_LIBRARY_DIRS}
)
-set(conduit_notepad_UIS
- notepad-setup.ui
-)
-set(conduit_notepad_KCFGS
- notepadconduit.kcfgc
-)
+##### conduit_notepad (kpart) ###################
-kde3_add_kcfg_files(conduit_notepad_SRCS ${conduit_notepad_KCFGS})
-trinity_add_ui_files(conduit_notepad_SRCS ${conduit_notepad_UIS})
-trinity_automoc(${conduit_notepad_SRCS})
-add_library(conduit_notepad SHARED ${conduit_notepad_SRCS})
-
-set_target_properties(
- conduit_notepad PROPERTIES LOCATION ${KDE3_PLUGIN_INSTALL_DIR}
- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib
- PREFIX ""
+tde_add_kpart( conduit_notepad AUTOMOC
+ SOURCES notepadconduit.kcfgc notepad-setup.ui
+ notepad-conduit.cc notepad-factory.cc
+ LINK kpilot-shared tdeui-shared tdeio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
)
-trinity_install_libtool_file(conduit_notepad)
-install(
- TARGETS conduit_notepad
- LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR}
-)
+##### other data ################################
-install(
- FILES notepad-conduit.desktop DESTINATION ${KDE3_SERVICES_DIR}
+install( FILES notepad-conduit.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
)