diff options
-rw-r--r-- | CMakeLists.txt | 6 | ||||
-rw-r--r-- | kdict/CMakeLists.txt | 42 | ||||
-rw-r--r-- | kdict/applet/CMakeLists.txt | 36 | ||||
-rw-r--r-- | kdict/pics/CMakeLists.txt | 14 |
4 files changed, 96 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c21b6e13..838ff6be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,8 +91,9 @@ option( BUILD_KOPETE_PLUGIN_SMPPPDCS "Build smpppdcs kopete plugin" ${BUILD_KOPE option( BUILD_ALL "Build all" OFF ) option( BUILD_DCOPRSS "Build dcoprss" ${BUILD_ALL} ) -option( BUILD_FILESHARING "Build filesharing" ${BUILD_ALL} ) option( BUILD_DOC "Build doc" ${BUILD_ALL} ) +option( BUILD_FILESHARING "Build filesharing" ${BUILD_ALL} ) +option( BUILD_KDICT "Build kdict" ${BUILD_ALL} ) option( BUILD_KOPETE "Build kopete" ${BUILD_ALL} ) option( BUILD_LIBRSS "Build librss" ${BUILD_ALL} ) @@ -116,8 +117,9 @@ set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" ) ##### kdenetwork directories #################### tde_conditional_add_subdirectory( BUILD_DCOPRSS dcoprss ) -tde_conditional_add_subdirectory( BUILD_FILESHARING filesharing ) tde_conditional_add_subdirectory( BUILD_DOC doc ) +tde_conditional_add_subdirectory( BUILD_FILESHARING filesharing ) +tde_conditional_add_subdirectory( BUILD_KDICT kdict ) tde_conditional_add_subdirectory( BUILD_KOPETE kopete ) tde_conditional_add_subdirectory( BUILD_LIBRSS librss ) diff --git a/kdict/CMakeLists.txt b/kdict/CMakeLists.txt new file mode 100644 index 00000000..ffc63403 --- /dev/null +++ b/kdict/CMakeLists.txt @@ -0,0 +1,42 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +# FIXME KDE_CXXFLAGS = $(USE_THREADS) + +add_subdirectory( applet ) +add_subdirectory( pics ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES kdict.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install( FILES kdictui.rc DESTINATION ${DATA_INSTALL_DIR}/kdict ) + + +##### kdict (kdeinit) ########################### + +tde_add_kdeinit_executable( kdict AUTOMOC + SOURCES + dcopinterface.skel main.cpp actions.cpp dict.cpp options.cpp + queryview.cpp toplevel.cpp sets.cpp matchview.cpp application.cpp + LINK khtml-shared pthread +) diff --git a/kdict/applet/CMakeLists.txt b/kdict/applet/CMakeLists.txt new file mode 100644 index 00000000..27d35f17 --- /dev/null +++ b/kdict/applet/CMakeLists.txt @@ -0,0 +1,36 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES + kdictapplet.desktop + DESTINATION ${DATA_INSTALL_DIR}/kicker/applets ) + + +##### kdict_panelapplet (module) ################ + +tde_add_kpart( kdict_panelapplet AUTOMOC + SOURCES kdictapplet.cpp + LINK kdeui-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kdict/pics/CMakeLists.txt b/kdict/pics/CMakeLists.txt new file mode 100644 index 00000000..0ed87633 --- /dev/null +++ b/kdict/pics/CMakeLists.txt @@ -0,0 +1,14 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_install_icons( + define_clip query_erase + DESTINATION ${DATA_INSTALL_DIR}/kdict/icons ) |