summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt121
-rw-r--r--src/pics/CMakeLists.txt5
2 files changed, 126 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..efb8046
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,121 @@
+add_subdirectory( pics )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/src
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${LIBOTR_INCLUDE_DIRS}
+ ${KOPETE_INCLUDE_DIRS}
+ ${KOPETE_INCLUDE_DIRS}/ui
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### kotr_kcfgc (static)
+
+tde_add_library( kotr_kcfgc STATIC_PIC AUTOMOC
+
+ SOURCES
+ kopete_otr.kcfgc
+)
+
+
+##### kotr (shared)
+
+tde_add_library( kotr SHARED AUTOMOC
+
+ SOURCES
+ otrplugin.cpp
+ otrguiclient.cpp
+ otrlchatinterface.cpp
+ otrlconfinterface.cpp
+ privkeypopup.cpp
+ privkeypopupui.ui
+ smppopup.cpp
+ smppopupui.ui
+ verifypopup.cpp
+ verifypopupui.ui
+
+ LINK
+ kotr_kcfgc-static
+ tdecore-shared
+ tdeui-shared
+ tdeio-shared
+ ${LIBOTR_LIBRARIES}
+ ${KOPETE_LIBRARIES}
+
+ VERSION 0.0.0
+
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### kcm_kopete_otr (kpart)
+
+tde_add_kpart( kcm_kopete_otr AUTOMOC
+
+ SOURCES
+ otrpreferences.cpp
+ otrprefs.ui
+ LINK
+ kotr_kcfgc-static
+ kotr-shared
+ tdecore-shared
+ tdeui-shared
+ tdehtml-shared
+ ${LIBOTR_LIBRARIES}
+ ${KOPETE_LIBRARIES}
+
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kopete_otr (kpart)
+
+tde_add_kpart( ${PROJECT_NAME} AUTOMOC
+
+ SOURCES
+ otrplugin-factory.cpp
+ LINK
+ kotr-shared
+ tdecore-shared
+ tdeui-shared
+ tdehtml-shared
+ ${LIBOTR_LIBRARIES}
+ ${KOPETE_LIBRARIES}
+
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data
+
+install(
+ FILES otrchatui.rc otrui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
+)
+
+install(
+ FILES kopete_otr.kcfg
+ DESTINATION ${KCFG_INSTALL_DIR}
+)
+
+
+#### desktop files
+
+tde_create_translated_desktop(
+ SOURCE kopete_otr.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+)
+
+tde_create_translated_desktop(
+ SOURCE kopete_otr_config.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/tdeconfiguredialog
+)
diff --git a/src/pics/CMakeLists.txt b/src/pics/CMakeLists.txt
new file mode 100644
index 0000000..eb272c7
--- /dev/null
+++ b/src/pics/CMakeLists.txt
@@ -0,0 +1,5 @@
+##### icons
+
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/icons )
+
+tde_install_icons( ${PROJECT_NAME} )