diff options
author | gregory guy <gregory-tde@laposte.net> | 2020-02-25 15:05:47 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-04-10 12:47:23 +0200 |
commit | ce133b3eda6bddc2750800d1bb76cf3c5a947daf (patch) | |
tree | e0f684a1d9d2f50918124dd0c163eaa1d8aba621 /kontact_plugin/CMakeLists.txt | |
parent | b51e232350d31b65a8cd055693c7869f0a896193 (diff) | |
download | basket-ce133b3eda6bddc2750800d1bb76cf3c5a947daf.tar.gz basket-ce133b3eda6bddc2750800d1bb76cf3c5a947daf.zip |
Conversion to the cmake building system.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 2578c13462d6ff5f6da401c62b24c461b3b445ca)
Diffstat (limited to 'kontact_plugin/CMakeLists.txt')
-rw-r--r-- | kontact_plugin/CMakeLists.txt | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/kontact_plugin/CMakeLists.txt b/kontact_plugin/CMakeLists.txt new file mode 100644 index 0000000..d662ee9 --- /dev/null +++ b/kontact_plugin/CMakeLists.txt @@ -0,0 +1,72 @@ + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/src + ${CMAKE_BINARY_DIR}kontact_plugin + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +###### basketdcopiface stub for kontact plugin + +set( KIDL_OUTPUT basketdcopiface.kidl ) + +add_custom_command( + OUTPUT ${KIDL_OUTPUT} + COMMAND ${KDE3_DCOPIDL_EXECUTABLE} ${CMAKE_SOURCE_DIR}/src/basketdcopiface.h > ${KIDL_OUTPUT} + DEPENDS ${CMAKE_SOURCE_DIR}/src/basketdcopiface.h +) +add_custom_target( + kontact-basketdcopiface-kidl + DEPENDS ${KIDL_OUTPUT} +) + +add_custom_command( + OUTPUT basketdcopiface_stub.cpp basketdcopiface_stub.h + COMMAND ${KDE3_DCOPIDL2CPP_EXECUTABLE} --c++-suffix cpp --no-signals --no-skel ${KIDL_OUTPUT} + DEPENDS kontact-basketdcopiface-kidl +) +add_custom_target( + kontact-basketdcopiface-stub + DEPENDS basketdcopiface_stub.cpp basketdcopiface_stub.h +) + + +##### libkontact_basket (kpart) + +tde_add_kpart( libkontact_basket AUTOMOC + + SOURCES + basket_plugin.cpp + uniqueapphandler.cpp + ${CMAKE_CURRENT_BINARY_DIR}/basketdcopiface_stub.cpp + LINK + tdecore-shared + tdeui-shared + kpinterfaces + + DESTINATION ${PLUGIN_INSTALL_DIR} + + DEPENDENCIES kontact-basketdcopiface-stub +) + + +##### other data + +install( + FILES kontact_basketplugin.setdlg + DESTINATION ${DATA_INSTALL_DIR}/kontact/ksettingsdialog +) + +install( + FILES basket.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kontact +) |