mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-09 00:39:02 +00:00
49 lines
1.2 KiB
CMake
49 lines
1.2 KiB
CMake
|
# - Locate NeL MISC library
|
||
|
# This module defines
|
||
|
# NELMISC_LIBRARY, the library to link against
|
||
|
# NELMISC_FOUND, if false, do not try to link to NELMISC
|
||
|
# NELMISC_INCLUDE_DIRS, where to find headers.
|
||
|
|
||
|
IF(NELMISC_LIBRARY AND NELMISC_INCLUDE_DIRS)
|
||
|
# in cache already
|
||
|
SET(NELMISC_FIND_QUIETLY TRUE)
|
||
|
ENDIF(NELMISC_LIBRARY AND NELMISC_INCLUDE_DIRS)
|
||
|
|
||
|
FIND_PATH(NELMISC_INCLUDE_DIRS
|
||
|
nel/misc/types_nl.h
|
||
|
PATHS
|
||
|
$ENV{NELMISC_DIR}/include
|
||
|
/usr/local/include
|
||
|
/usr/include
|
||
|
/sw/include
|
||
|
/opt/local/include
|
||
|
/opt/csw/include
|
||
|
/opt/include
|
||
|
)
|
||
|
|
||
|
FIND_LIBRARY(NELMISC_LIBRARY
|
||
|
NAMES nelmisc
|
||
|
PATHS
|
||
|
$ENV{NELMISC_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(NELMISC_LIBRARY AND NELMISC_INCLUDE_DIRS)
|
||
|
SET(NELMISC_FOUND "YES")
|
||
|
IF(NOT NELMISC_FIND_QUIETLY)
|
||
|
MESSAGE(STATUS "Found NeL MISC: ${NELMISC_LIBRARY}")
|
||
|
ENDIF(NOT NELMISC_FIND_QUIETLY)
|
||
|
ELSE(NELMISC_LIBRARY AND NELMISC_INCLUDE_DIRS)
|
||
|
IF(NOT NELMISC_FIND_QUIETLY)
|
||
|
MESSAGE(STATUS "Warning: Unable to find NeL MISC!")
|
||
|
ENDIF(NOT NELMISC_FIND_QUIETLY)
|
||
|
ENDIF(NELMISC_LIBRARY AND NELMISC_INCLUDE_DIRS)
|