summaryrefslogtreecommitdiffstats
path: root/conduits/malconduit
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/malconduit
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/malconduit')
-rw-r--r--conduits/malconduit/CMakeLists.txt54
1 files changed, 20 insertions, 34 deletions
diff --git a/conduits/malconduit/CMakeLists.txt b/conduits/malconduit/CMakeLists.txt
index 6064a22..a6ff252 100644
--- a/conduits/malconduit/CMakeLists.txt
+++ b/conduits/malconduit/CMakeLists.txt
@@ -1,48 +1,34 @@
+
include_directories(
- ${CMAKE_CURRENT_BINARY_DIR}
- ${MAL_INCLUDE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/lib
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
)
-set(conduit_mal_SRCS
- mal-factory.cc
- mal-setup.cc
- mal-conduit.cc
+link_directories(
+ ${TQT_LIBRARY_DIRS}
)
-set(conduit_mal_UIS
- mal-setup_dialog.ui
-)
-set(conduit_mal_KCFGS
- malconduitSettings.kcfgc
-)
+##### conduit_mal (kpart) #######################
-kde3_add_kcfg_files(conduit_mal_SRCS ${conduit_mal_KCFGS})
-trinity_add_ui_files(conduit_mal_SRCS ${conduit_mal_UIS})
-trinity_automoc(${conduit_mal_SRCS})
-add_library(conduit_mal SHARED ${conduit_mal_SRCS})
-target_link_libraries(conduit_mal ${MAL_LIBRARY})
-
-set_target_properties(
- conduit_mal PROPERTIES
- LOCATION ${KDE3_PLUGIN_INSTALL_DIR}
- PREFIX ""
- INSTALL_RPATH "${MAL_LIBRARY}"
- INSTALL_RPATH_USE_LINK_PATH true
+tde_add_kpart( conduit_mal AUTOMOC
+ SOURCES malconduitSettings.kcfgc mal-setup_dialog.ui
+ mal-factory.cc mal-setup.cc mal-conduit.cc
+ LINK kpilot-shared tdeui-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
)
-trinity_install_libtool_file(conduit_mal)
-install(
- TARGETS conduit_mal
- LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR}
-)
+##### other data ################################
-install(
- FILES mal_conduit.desktop DESTINATION ${KDE3_SERVICES_DIR}
+install( FILES mal_conduit.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
)
-install(
- FILES malconduit.kcfg DESTINATION ${KDE3_KCFG_DIR}
+install( FILES malconduit.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
)
-