add more spacing
[personal-kdebase.git] / runtime / nepomuk / strigibackend / CMakeLists.txt
blob456f26c1dcb8ba98da2ecec973ce69580414277f
1 project(strigi_soprano_indexer)
3 include_directories( 
4   ${STRIGI_INCLUDE_DIR}
5   ${SOPRANO_INCLUDE_DIR}
6   ${CLUCENE_LIBRARY_DIR}
7   ${CLUCENE_INCLUDE_DIR}
10 set( strigi_soprano_indexer_SRCS
11   sopranoindexmanager.cpp
12   sopranoindexreader.cpp
13   sopranoindexwriter.cpp
14   util.cpp
15   tstring.cpp
18 # CLucene requires exception support
19 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
21 if(WIN32)
22   # this is needed to have mingw, cygwin and msvc libs installed in one directory
23   if(MSVC)
24     set(prefix msvc_strigiindex_)
25   elseif(CYGWIN)
26     set(prefix cyg_strigiindex_)
27   elseif(MINGW)
28     set(prefix mingw_strigiindex_)
29   endif(MSVC)
30 else(WIN32)
31   set(prefix strigiindex_)
32 endif(WIN32)
34 kde4_add_library(sopranobackend MODULE ${strigi_soprano_indexer_SRCS})
36 set_target_properties(sopranobackend PROPERTIES PREFIX ${prefix})
38 target_link_libraries(sopranobackend
39   ${STRIGI_STREAMANALYZER_LIBRARY}
40   ${NEPOMUK_LIBRARIES}
41   ${SOPRANO_LIBRARIES}
42   ${SOPRANO_CLIENT_LIBRARIES}
43   ${SOPRANO_INDEX_LIBRARIES}
44   ${QT_QTCORE_LIBRARY}
45   ${CLUCENE_LIBRARY}
46   ${KDE4_KDECORE_LIBS}
49 install(TARGETS sopranobackend LIBRARY DESTINATION ${LIB_INSTALL_DIR}/strigi)