From ce133b3eda6bddc2750800d1bb76cf3c5a947daf Mon Sep 17 00:00:00 2001 From: gregory guy Date: Tue, 25 Feb 2020 15:05:47 +0100 Subject: Conversion to the cmake building system. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gregory guy Signed-off-by: Slávek Banko (cherry picked from commit 2578c13462d6ff5f6da401c62b24c461b3b445ca) --- kontact_plugin/CMakeLists.txt | 72 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 kontact_plugin/CMakeLists.txt (limited to 'kontact_plugin/CMakeLists.txt') 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 +) -- cgit v1.2.1