diff options
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | dcoprss/CMakeLists.txt | 60 | ||||
-rw-r--r-- | librss/CMakeLists.txt | 39 |
3 files changed, 103 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e2fc1fd4..bf072bed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,7 +90,9 @@ option( BUILD_KOPETE_PLUGIN_SMPPPDCS "Build smpppdcs kopete plugin" ${BUILD_KOPE ##### user requested modules #################### option( BUILD_ALL "Build all" OFF ) +option( BUILD_DCOPRSS "Build dcoprss" ${BUILD_ALL} ) option( BUILD_KOPETE "Build kopete" ${BUILD_ALL} ) +option( BUILD_LIBRSS "Build librss" ${BUILD_ALL} ) ##### configure checks ########################## @@ -111,7 +113,9 @@ set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" ) ##### kdenetwork directories #################### +tde_conditional_add_subdirectory( BUILD_DCOPRSS dcoprss ) tde_conditional_add_subdirectory( BUILD_KOPETE kopete ) +tde_conditional_add_subdirectory( BUILD_LIBRSS librss ) ##### write configure files ##################### diff --git a/dcoprss/CMakeLists.txt b/dcoprss/CMakeLists.txt new file mode 100644 index 00000000..44c47491 --- /dev/null +++ b/dcoprss/CMakeLists.txt @@ -0,0 +1,60 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_import( librss ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES rssservice.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### rssservice (executable) ################### + +tde_add_executable( rssservice AUTOMOC + SOURCES + main.cpp service.cpp query.cpp document.cpp article.cpp query.skel + service.skel xmlrpciface.cpp cache.cpp + LINK rss-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### rssclient (executable) #################### + +tde_add_executable( rssclient + SOURCES + client.cpp + LINK kdecore-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### feedbrowser (executable) ################## + +tde_add_executable( feedbrowser AUTOMOC + SOURCES + feedbrowser.skel feedbrowser.cpp + LINK kdeui-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/librss/CMakeLists.txt b/librss/CMakeLists.txt new file mode 100644 index 00000000..b16edfb1 --- /dev/null +++ b/librss/CMakeLists.txt @@ -0,0 +1,39 @@ +################################################# +# +# (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} +) + + +##### headers ################################### + +install( FILES + article.h document.h global.h image.h textinput.h loader.h librss.h + DESTINATION ${INCLUDE_INSTALL_DIR}/rss ) + + +##### rss (shared) ############################## + +tde_add_library( rss SHARED AUTOMOC + SOURCES + article.cpp document.cpp image.cpp textinput.cpp tools_p.cpp + loader.cpp + VERSION 1.0.0 + LINK kio-shared + DESTINATION ${LIB_INSTALL_DIR} +) |