FindClipper.cmake 659 Bytes
Newer Older
1 2 3
find_path(Clipper_INCLUDE_DIRS
	NAMES clipper.h
	PATH_SUFFIXES clipper
Tobias WEBER's avatar
Tobias WEBER committed
4
	HINTS /usr/local/include /usr/include /opt/local/include
5 6 7 8 9
	DOC "Clipper include directories"
)

find_library(Clipper_LIBRARIES
	NAMES libclipper-core.so
Tobias WEBER's avatar
Tobias WEBER committed
10
	HINTS /usr/local/lib64 /usr/local/lib /usr/lib64 /usr/lib /opt/local/lib /usr/lib32 /usr/local/lib32
11 12 13 14
	DOC "Clipper library"
)

if(Clipper_LIBRARIES)
Tobias WEBER's avatar
Tobias WEBER committed
15
	set(Clipper_FOUND TRUE)
16 17 18
	message("Clipper include directories: ${Clipper_INCLUDE_DIRS}")
	message("Clipper library: ${Clipper_LIBRARIES}")
else()
Tobias WEBER's avatar
Tobias WEBER committed
19
	set(Clipper_FOUND FALSE)
20 21 22 23
	set(Clipper_INCLUDE_DIRS "")
	set(Clipper_LIBRARIES "")
	message("Error: Clipper could not be found!")
endif()