macro_optional_find_package(Soprano)
macro_optional_find_package(NepomukCore)
-macro_log_feature(NepomukCore_FOUND "Nepomuk" "Nepomuk" "http://www.kde.org" FALSE "" "For adding desktop-wide tagging support to dolphin")
-macro_bool_to_01(NepomukCore_FOUND HAVE_NEPOMUK)
+macro_optional_find_package(NepomukWidgets)
+macro_log_feature(NepomukCore_FOUND "Nepomuk Core" "Nepomuk Core functionality" "http://www.kde.org" FALSE "" "For fetching additional file metadata in dolphin")
+macro_log_feature(NepomukWidgets_FOUND "Nepomuk Widgets" "Nepomuk Widgets" "http://www.kde.org" FALSE "" "For adding desktop-wide tagging support to dolphin")
+if( DEFINED NepomukCore_FOUND AND DEFINED NepomukWidgets_FOUND )
+ set(HAVE_NEPOMUK TRUE)
+endif()
+
configure_file(config-nepomuk.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-nepomuk.h )
macro_bool_to_01(X11_Xrender_FOUND HAVE_XRENDER)
if (NepomukCore_FOUND)
# Yes, Soprano includes is what we need here
- include_directories( ${SOPRANO_INCLUDE_DIR} ${NEPOMUK_CORE_INCLUDE_DIR} )
+ include_directories( ${SOPRANO_INCLUDE_DIR} ${NEPOMUK_CORE_INCLUDE_DIR} ${NEPOMUK_WIDGETS_INCLUDE_DIR} )
endif (NepomukCore_FOUND)
add_subdirectory(tests)
target_link_libraries(
dolphinprivate
${NEPOMUK_CORE_LIBRARY}
+ ${NEPOMUK_WIDGETS_LIBRARY}
${SOPRANO_LIBRARIES}
)
endif (NepomukCore_FOUND)
if (NepomukCore_FOUND)
target_link_libraries(kdeinit_dolphin
${NEPOMUK_CORE_LIBRARY}
+ ${NEPOMUK_WIDGETS_LIBRARY}
${SOPRANO_LIBRARIES}
)
endif (NepomukCore_FOUND)
target_link_libraries(kcm_dolphinservices ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KNEWSTUFF3_LIBRARY} dolphinprivate)
target_link_libraries(kcm_dolphingeneral ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS} ${KDE4_KIO_LIBS} dolphinprivate)
if (NepomukCore_FOUND)
- target_link_libraries(kcm_dolphinviewmodes ${NEPOMUK_CORE_LIBRARY})
- target_link_libraries(kcm_dolphinnavigation ${NEPOMUK_CORE_LIBRARY})
- target_link_libraries(kcm_dolphinservices ${NEPOMUK_CORE_LIBRARY})
- target_link_libraries(kcm_dolphingeneral ${NEPOMUK_CORE_LIBRARY})
+ target_link_libraries(kcm_dolphinviewmodes ${NEPOMUK_CORE_LIBRARY} ${NEPOMUK_WIDGETS_LIBRARY})
+ target_link_libraries(kcm_dolphinnavigation ${NEPOMUK_CORE_LIBRARY} ${NEPOMUK_WIDGETS_LIBRARY})
+ target_link_libraries(kcm_dolphinservices ${NEPOMUK_CORE_LIBRARY} ${NEPOMUK_WIDGETS_LIBRARY})
+ target_link_libraries(kcm_dolphingeneral ${NEPOMUK_CORE_LIBRARY} ${NEPOMUK_WIDGETS_LIBRARY})
endif (NepomukCore_FOUND)
install(TARGETS kcm_dolphinviewmodes DESTINATION ${PLUGIN_INSTALL_DIR} )