TYPE RECOMMENDED
)
+macro_optional_find_package(Strigi 0.6.3)
+set_package_properties(Strigi PROPERTIES
+ DESCRIPTION "Desktop indexing and search support"
+ URL "http://strigi.sourceforge.net"
+ TYPE RECOMMENDED
+ PURPOSE "Required for fonts analyzer"
+)
+
macro_optional_find_package(OpenGL)
set_package_properties(OpenGL PROPERTIES
DESCRIPTION "The OpenGL libraries"
add_subdirectory( lib )
add_subdirectory( dbus )
- add_subdirectory( kcmfontinst )
- add_subdirectory( strigi-analyzer )
+ add_subdirectory( kcmfontinst )
+ if (STRIGI_FOUND)
+ add_subdirectory( strigi-analyzer )
+ endif()
add_subdirectory( apps )
add_subdirectory( kio )
add_subdirectory( thumbnail )
-include_directories( ${CMAKE_SOURCE_DIR}/kcontrol/kfontinst/lib/
- ${STRIGI_INCLUDE_DIR}
- )
+include_directories(
+ ${CMAKE_SOURCE_DIR}/kcontrol/kfontinst/lib/
+ ${STRIGI_INCLUDE_DIR}
+)
-add_library(font MODULE FontThroughAnalyzer.cpp FontEngine.cpp )
+add_library(font MODULE FontThroughAnalyzer.cpp FontEngine.cpp)
-target_link_libraries(font ${STRIGI_STREAMANALYZER_LIBRARY} ${FREETYPE_LIBRARIES} ${FONTCONFIG_LIBRARIES} ${KDE4_KIO_LIBS} kfontinst)
+target_link_libraries(font
+ ${STRIGI_STREAMANALYZER_LIBRARY}
+ ${FREETYPE_LIBRARIES}
+ ${FONTCONFIG_LIBRARIES}
+ ${KDE4_KIO_LIBS}
+ kfontinst
+)
set_target_properties(font PROPERTIES PREFIX strigita_)