16 set(HAVE_CLUCENE ${CLucene_FOUND})
17 set(HAVE_SOPRANO_INDEX ${SopranoIndex_FOUND})
19 if(CLucene_FOUND AND SopranoIndex_FOUND)
21 include_directories(${CLUCENE_INCLUDE_DIR} ${CLUCENE_LIBRARY_DIR})
30 # CLucene requires exception support and has no support for visibility=hidden
31 # so we must use the default (i.e. public) value for -fvisibility
32 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
34 include(CheckCXXCompilerFlag)
35 # Only GCC supports these flags
36 IF(CMAKE_COMPILER_IS_GNUCXX)
37 check_cxx_compiler_flag(-fvisibility=hidden __NEPOMUK_HAVE_GCC_VISIBILITY)
38 if(__NEPOMUK_HAVE_GCC_VISIBILITY)
39 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=default")
40 endif(__NEPOMUK_HAVE_GCC_VISIBILITY)
41 ENDIF(CMAKE_COMPILER_IS_GNUCXX)
43 endif(CLucene_FOUND AND SopranoIndex_FOUND)
45 configure_file(nepomukstorage-config.h.cmake
46 ${CMAKE_CURRENT_BINARY_DIR}/nepomukstorage-config.h)
48 kde4_add_plugin(nepomukstorage ${storage_SRCS})
50 target_link_libraries(nepomukstorage
52 ${SOPRANO_SERVER_LIBRARIES}
58 if(SopranoIndex_FOUND)
59 target_link_libraries(nepomukstorage ${SOPRANO_INDEX_LIBRARIES})
61 target_link_libraries(nepomukstorage ${CLUCENE_LIBRARY})
63 endif(SopranoIndex_FOUND)
66 FILES nepomukstorage.desktop
67 DESTINATION ${SERVICES_INSTALL_DIR})
70 FILES nepomukstorage.notifyrc
71 DESTINATION ${DATA_INSTALL_DIR}/nepomukstorage)
74 TARGETS nepomukstorage
75 DESTINATION ${PLUGIN_INSTALL_DIR})
76 # -----------------------------