1
0
Fork 0
terragear/CMakeModules/FindGPC.cmake
Christian Schmitt 9761a02299 gpc.h should be in the include list.
Add some more variants of the gpc libs name to pick it up on different distros
2012-08-03 10:00:29 +02:00

24 lines
435 B
CMake

FIND_PATH(GPC_INCLUDE_DIR gpc.h
HINTS $ENV{GPC_DIR}
PATH_SUFFIXES include include/gpcl
PATHS
/usr/local
/usr
/opt
)
FIND_LIBRARY(GPC_LIBRARY
NAMES genpolyclip gpc gpcl agggpc
HINTS $ENV{GPC_DIR}
PATH_SUFFIXES lib64 lib libs64 libs libs/Win32 libs/Win64
PATHS
/usr/local
/usr
/opt
)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GPC DEFAULT_MSG
GPC_LIBRARY GPC_INCLUDE_DIR)