]> git.lyx.org Git - lyx.git/blob - development/cmake/modules/FindENCHANT.cmake
ctests: ignore Japanese dvi3 systemF tests
[lyx.git] / development / cmake / modules / FindENCHANT.cmake
1 if(WIN32)
2         find_library(ENCHANT_LIBRARY "libenchant")
3         find_path(ENCHANT_INCLUDE_DIR "enchant++.h")
4 else()
5   find_library(ENCHANT_LIBRARY NAMES "enchant-2" "enchant"
6         "/usr/local/lib" 
7         ${SYSTEM_LIB_DIRS}
8         "/opt/local/lib")
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
13                 /usr/local/include
14                 /usr/local/include/enchant
15                 /usr/include
16                 /usr/include/enchant
17                 /opt/local/include/enchant)
18 endif()
19
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)
24
25 mark_as_advanced(ENCHANT_LIBRARY ENCHANT_INCLUDE_DIR)