File: FindENCHANT.cmake

package info (click to toggle)
lyx 2.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 138,444 kB
  • sloc: cpp: 244,268; ansic: 106,398; xml: 72,791; python: 39,384; sh: 7,666; makefile: 6,584; pascal: 2,143; perl: 2,101; objc: 1,084; tcl: 163; sed: 16
file content (25 lines) | stat: -rw-r--r-- 785 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
if(WIN32)
	find_library(ENCHANT_LIBRARY "libenchant")
	find_path(ENCHANT_INCLUDE_DIR "enchant++.h")
else()
  find_library(ENCHANT_LIBRARY NAMES "enchant-2" "enchant"
	"/usr/local/lib" 
	${SYSTEM_LIB_DIRS}
	"/opt/local/lib")
  find_path(ENCHANT_INCLUDE_DIR "enchant++.h" PATHS 
		/usr/local/include/enchant-2
		/usr/include/enchant-2
		/opt/local/include/enchant-2
		/usr/local/include
		/usr/local/include/enchant
		/usr/include
		/usr/include/enchant
		/opt/local/include/enchant)
endif()

# handle the QUIETLY and REQUIRED arguments and
# set ENCHANT_FOUND to TRUE if all listed variables are TRUE
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ENCHANT DEFAULT_MSG ENCHANT_LIBRARY ENCHANT_INCLUDE_DIR)

mark_as_advanced(ENCHANT_LIBRARY ENCHANT_INCLUDE_DIR)