branches/KDE/4.1/kdeplasma-addons

Stephan Johach lucardus at onlinehome.de
Tue Aug 5 10:16:15 CEST 2008


SVN commit 842308 by johach:

Backport boost detection to 4.1 branch.
See http://lists.kde.org/?l=kde-devel&m=121788299924181&w=2
CCMAIL:plasma-devel at kde.org


 M  +1 -1      CMakeLists.txt  
 M  +11 -9     dataengines/comic/CMakeLists.txt  


--- branches/KDE/4.1/kdeplasma-addons/CMakeLists.txt #842307:842308
@@ -6,7 +6,7 @@
 
 find_package(Plasma REQUIRED)
 find_package(KdepimLibs REQUIRED)
-
+find_package(Boost)
 macro_optional_find_package(OpenGL)
 macro_log_feature(OPENGL_FOUND "OpenGL" "API for developing portable, interactive 2D and 3D graphics applications" "http://mesa3d.sourceforge.net" FALSE "" "STRONGLY RECOMMENDED: The 3D hardware acceleration available through the OpenGL API is used in applications ranging from graphics and modellers to screensavers and video players.")
 
--- branches/KDE/4.1/kdeplasma-addons/dataengines/comic/CMakeLists.txt #842307:842308
@@ -62,16 +62,18 @@
 
 #### next ####
 
-set( comic_osnews_provider_SRCS
-     osnewsprovider.cpp
-)
+if(Boost_FOUND)
+   include_directories (${Boost_INCLUDE_DIR})
+   set( comic_osnews_provider_SRCS
+        osnewsprovider.cpp
+   )
+   kde4_add_plugin( plasma_comic_osnewsprovider ${comic_osnews_provider_SRCS} )
+   target_link_libraries( plasma_comic_osnewsprovider plasmacomicprovidercore ${KDE4_SYNDICATION_LIBS} )
+   install( TARGETS plasma_comic_osnewsprovider DESTINATION ${PLUGIN_INSTALL_DIR} )
+   install( FILES osnewsprovider.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+   install( FILES pics/plasma_comic_osnews.png DESTINATION ${DATA_INSTALL_DIR}/plasma-comic )
+endif(Boost_FOUND)
 
-kde4_add_plugin( plasma_comic_osnewsprovider ${comic_osnews_provider_SRCS} )
-target_link_libraries( plasma_comic_osnewsprovider plasmacomicprovidercore ${KDE4_SYNDICATION_LIBS} )
-install( TARGETS plasma_comic_osnewsprovider DESTINATION ${PLUGIN_INSTALL_DIR} )
-install( FILES osnewsprovider.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
-install( FILES pics/plasma_comic_osnews.png DESTINATION ${DATA_INSTALL_DIR}/plasma-comic )
-
 #### next ####
 
 set( comic_snoopy_provider_SRCS


More information about the Plasma-devel mailing list