diff options
author | Slávek Banko <[email protected]> | 2019-01-03 03:54:42 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-01-03 03:54:42 +0100 |
commit | 0ef4ca6d362d2a6d8a3821e2f47a7d141fbcd3a9 (patch) | |
tree | 0896cb2e2c5d4203af2b498f05d3ed2b66aaef5b /conduits/notepadconduit/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 <[email protected]>
Diffstat (limited to 'conduits/notepadconduit/CMakeLists.txt')
-rw-r--r-- | conduits/notepadconduit/CMakeLists.txt | 44 |
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} ) |