mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
35 lines
1.5 KiB
CMake
35 lines
1.5 KiB
CMake
|
|
include_directories(
|
|
${CMAKE_SOURCE_DIR}/kdecore/sonnet ${KDE4_KDECORE_INCLUDES}
|
|
)
|
|
|
|
# you can find macro_optional_find_package() in kdelibs/cmake/modules/OptionalFindPackage.cmake
|
|
# it is the same as FIND_PACKAGE(<name>) but additionally creates an OPTION(WITH_<name>)
|
|
# so the checking for the software can be disabled via ccmake or -DWITH_<name>=OFF
|
|
macro_optional_find_package(HSPELL)
|
|
set_package_properties(HSPELL PROPERTIES DESCRIPTION "Spell checking support for Hebrew"
|
|
URL "http://ivrix.org.il/projects/spell-checker/"
|
|
TYPE OPTIONAL
|
|
PURPOSE "Hebrew support can also be provided via Enchant, providing the correct Enchant backends are installed"
|
|
)
|
|
|
|
if (HSPELL_FOUND)
|
|
add_subdirectory( hspell )
|
|
endif (HSPELL_FOUND)
|
|
|
|
macro_optional_find_package(ENCHANT)
|
|
set_package_properties(ENCHANT PROPERTIES DESCRIPTION "Spell checking support via Enchant"
|
|
URL "http://www.abisource.com/projects/enchant/"
|
|
TYPE OPTIONAL
|
|
)
|
|
|
|
if (ENCHANT_FOUND)
|
|
add_subdirectory( enchant )
|
|
endif (ENCHANT_FOUND)
|
|
|
|
#macro_optional_find_package(HUNSPELL)
|
|
#macro_log_feature(HUNSPELL_FOUND "Hunspell" "Spell checking support via Hunspell" "http://hunspell.sourceforge.net/" FALSE "" "This is not needed for spell checking if Enchant is provided or only Hebrew spell checking is required.")
|
|
#if (HUNSPELL_FOUND)
|
|
# add_subdirectory( hunspell )
|
|
#endif (HUNSPELL_FOUND)
|
|
|