summaryrefslogtreecommitdiffstats
path: root/kontact_plugin/CMakeLists.txt
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2020-02-25 15:05:47 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-04-10 12:41:25 +0200
commit2578c13462d6ff5f6da401c62b24c461b3b445ca (patch)
tree3ca563d8f2606fb5321167858e5d5c6195ddd0ec /kontact_plugin/CMakeLists.txt
parentef3976a6cb843f51333ea43172306a9c8f4954ef (diff)
downloadbasket-2578c13462d6ff5f6da401c62b24c461b3b445ca.tar.gz
basket-2578c13462d6ff5f6da401c62b24c461b3b445ca.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>
Diffstat (limited to 'kontact_plugin/CMakeLists.txt')
-rw-r--r--kontact_plugin/CMakeLists.txt72
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
+)