2 find_library(ENCHANT_LIBRARY "libenchant")
3 find_path(ENCHANT_INCLUDE_DIR "enchant++.h")
5 find_library(ENCHANT_LIBRARY NAMES "enchant-2" "enchant"
9 find_path(ENCHANT_INCLUDE_DIR "enchant++.h" PATHS
10 /usr/local/include/enchant-2
11 /usr/include/enchant-2
12 /opt/local/include/enchant-2
14 /usr/local/include/enchant
17 /opt/local/include/enchant)
20 # handle the QUIETLY and REQUIRED arguments and
21 # set ENCHANT_FOUND to TRUE if all listed variables are TRUE
22 include(FindPackageHandleStandardArgs)
23 find_package_handle_standard_args(ENCHANT DEFAULT_MSG ENCHANT_LIBRARY ENCHANT_INCLUDE_DIR)
25 mark_as_advanced(ENCHANT_LIBRARY ENCHANT_INCLUDE_DIR)