mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
49 lines
1.1 KiB
CMake
49 lines
1.1 KiB
CMake
|
# - Locate NeL NET library
|
||
|
# This module defines
|
||
|
# NELNET_LIBRARY, the library to link against
|
||
|
# NELNET_FOUND, if false, do not try to link to NELNET
|
||
|
# NELNET_INCLUDE_DIRS, where to find headers.
|
||
|
|
||
|
IF(NELNET_LIBRARY AND NELNET_INCLUDE_DIRS)
|
||
|
# in cache already
|
||
|
SET(NELNET_FIND_QUIETLY TRUE)
|
||
|
ENDIF(NELNET_LIBRARY AND NELNET_INCLUDE_DIRS)
|
||
|
|
||
|
FIND_PATH(NELNET_INCLUDE_DIRS
|
||
|
nel/net/service.h
|
||
|
PATHS
|
||
|
$ENV{NELNET_DIR}/include
|
||
|
/usr/local/include
|
||
|
/usr/include
|
||
|
/sw/include
|
||
|
/opt/local/include
|
||
|
/opt/csw/include
|
||
|
/opt/include
|
||
|
)
|
||
|
|
||
|
FIND_LIBRARY(NELNET_LIBRARY
|
||
|
NAMES nelnet
|
||
|
PATHS
|
||
|
$ENV{NELNET_DIR}/lib
|
||
|
/usr/local/lib
|
||
|
/usr/lib
|
||
|
/usr/local/X11R6/lib
|
||
|
/usr/X11R6/lib
|
||
|
/sw/lib
|
||
|
/opt/local/lib
|
||
|
/opt/csw/lib
|
||
|
/opt/lib
|
||
|
/usr/freeware/lib64
|
||
|
)
|
||
|
|
||
|
IF(NELNET_LIBRARY AND NELNET_INCLUDE_DIRS)
|
||
|
SET(NELNET_FOUND "YES")
|
||
|
IF(NOT NELNET_FIND_QUIETLY)
|
||
|
MESSAGE(STATUS "Found NeL NET: ${NELNET_LIBRARY}")
|
||
|
ENDIF(NOT NELNET_FIND_QUIETLY)
|
||
|
ELSE(NELNET_LIBRARY AND NELNET_INCLUDE_DIRS)
|
||
|
IF(NOT NELNET_FIND_QUIETLY)
|
||
|
MESSAGE(STATUS "Warning: Unable to find NeL NET!")
|
||
|
ENDIF(NOT NELNET_FIND_QUIETLY)
|
||
|
ENDIF(NELNET_LIBRARY AND NELNET_INCLUDE_DIRS)
|