diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-01-03 03:54:42 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-01-03 03:54:42 +0100 |
commit | 0ef4ca6d362d2a6d8a3821e2f47a7d141fbcd3a9 (patch) | |
tree | 0896cb2e2c5d4203af2b498f05d3ed2b66aaef5b /conduits/sysinfoconduit/CMakeLists.txt | |
parent | c2446367dbf7826bdd45ff8a943b408c1b7097d8 (diff) | |
download | kpilot-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/sysinfoconduit/CMakeLists.txt')
-rw-r--r-- | conduits/sysinfoconduit/CMakeLists.txt | 56 |
1 files changed, 22 insertions, 34 deletions
diff --git a/conduits/sysinfoconduit/CMakeLists.txt b/conduits/sysinfoconduit/CMakeLists.txt index 99b862c..10f85e5 100644 --- a/conduits/sysinfoconduit/CMakeLists.txt +++ b/conduits/sysinfoconduit/CMakeLists.txt @@ -1,50 +1,38 @@ -include_directories( - ${CMAKE_CURRENT_BINARY_DIR} -) -set(conduit_sysinfo_SRCS - sysinfo-setup.cc - sysinfo-factory.cc - sysinfo-conduit.cc +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_sysinfo_UIS - sysinfo-setup_dialog.ui +link_directories( + ${TQT_LIBRARY_DIRS} ) -set(conduit_sysinfo_KCFGS - sysinfoSettings.kcfgc -) -kde3_add_kcfg_files(conduit_sysinfo_SRCS ${conduit_sysinfo_KCFGS}) -trinity_add_ui_files(conduit_sysinfo_SRCS ${conduit_sysinfo_UIS}) -trinity_automoc(${conduit_sysinfo_SRCS}) -add_library(conduit_sysinfo SHARED ${conduit_sysinfo_SRCS}) +##### conduit_sysinfo (kpart) ################### -set_target_properties( - conduit_sysinfo PROPERTIES LOCATION ${KDE3_PLUGIN_INSTALL_DIR} - INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib - PREFIX "" +tde_add_kpart( conduit_sysinfo AUTOMOC + SOURCES sysinfoSettings.kcfgc sysinfo-factory.cc sysinfo-setup.cc + sysinfo-conduit.cc sysinfo-setup_dialog.ui + LINK kpilot-shared tdeui-shared tdeio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} ) -trinity_install_libtool_file(conduit_sysinfo) -install( - TARGETS conduit_sysinfo - LIBRARY DESTINATION ${KDE3_PLUGIN_INSTALL_DIR} -) +##### other data ################################ -install( - FILES sysinfo_conduit.desktop DESTINATION ${KDE3_SERVICES_DIR} +install( FILES Template.html Template.txt + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/sysinfoconduit ) -install( - FILES sysinfoSettings.kcfgc sysinfoconduit.kcfg - DESTINATION ${KDE3_KCFG_DIR} +install( FILES sysinfo_conduit.desktop + DESTINATION ${SERVICES_INSTALL_DIR} ) -install( - FILES Template.html Template.txt - DESTINATION ${CMAKE_INSTALL_PREFIX}/share/apps/kpilot/sysinfoconduit +install( FILES sysinfoconduit.kcfg + DESTINATION ${KCFG_INSTALL_DIR} ) - |