mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-17 21:11:39 +00:00
merge
This commit is contained in:
commit
9b99932d3b
2 changed files with 101 additions and 0 deletions
50
code/nel/CMakeModules/FindEFXUtil.cmake
Normal file
50
code/nel/CMakeModules/FindEFXUtil.cmake
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
# - Locate EFX-Util library
|
||||||
|
# This module defines
|
||||||
|
# EFXUTIL_LIBRARY, the library to link against
|
||||||
|
# EFXUTIL_FOUND, if false, do not try to link to EFX-Util
|
||||||
|
# EFXUTIL_INCLUDE_DIR, where to find headers.
|
||||||
|
|
||||||
|
IF(EFXUTIL_LIBRARY AND EFXUTIL_INCLUDE_DIR)
|
||||||
|
# in cache already
|
||||||
|
SET(EFXUTIL_FIND_QUIETLY TRUE)
|
||||||
|
ENDIF(EFXUTIL_LIBRARY AND EFXUTIL_INCLUDE_DIR)
|
||||||
|
|
||||||
|
|
||||||
|
FIND_PATH(EFXUTIL_INCLUDE_DIR
|
||||||
|
EFX-Util.h
|
||||||
|
PATHS
|
||||||
|
$ENV{EFXUTIL_DIR}/include
|
||||||
|
/usr/local/include
|
||||||
|
/usr/include
|
||||||
|
/sw/include
|
||||||
|
/opt/local/include
|
||||||
|
/opt/csw/include
|
||||||
|
/opt/include
|
||||||
|
PATH_SUFFIXES AL
|
||||||
|
)
|
||||||
|
|
||||||
|
FIND_LIBRARY(EFXUTIL_LIBRARY
|
||||||
|
NAMES EFX-Util efxutil libefxutil
|
||||||
|
PATHS
|
||||||
|
$ENV{EFXUTIL_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(EFXUTIL_LIBRARY AND EFXUTIL_INCLUDE_DIR)
|
||||||
|
SET(EFXUTIL_FOUND "YES")
|
||||||
|
IF(NOT EFXUTIL_FIND_QUIETLY)
|
||||||
|
MESSAGE(STATUS "Found EFX-Util: ${EFXUTIL_LIBRARY}")
|
||||||
|
ENDIF(NOT EFXUTIL_FIND_QUIETLY)
|
||||||
|
ELSE(EFXUTIL_LIBRARY AND EFXUTIL_INCLUDE_DIR)
|
||||||
|
IF(NOT EFXUTIL_FIND_QUIETLY)
|
||||||
|
MESSAGE(STATUS "Warning: Unable to find EFX-Util!")
|
||||||
|
ENDIF(NOT EFXUTIL_FIND_QUIETLY)
|
||||||
|
ENDIF(EFXUTIL_LIBRARY AND EFXUTIL_INCLUDE_DIR)
|
51
code/nel/CMakeModules/FindSquish.cmake
Normal file
51
code/nel/CMakeModules/FindSquish.cmake
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
#
|
||||||
|
# Find the LibSquish includes and library
|
||||||
|
#
|
||||||
|
# This module defines
|
||||||
|
# SQUISH_INCLUDE_DIR, where to find squish.h
|
||||||
|
# SQUISH_LIBRARY, where to find the Squish library.
|
||||||
|
# SQUISH_FOUND, If false, do not try to use Squish.
|
||||||
|
|
||||||
|
# also defined, but not for general use are
|
||||||
|
IF(SQUISH_LIBRARY AND SQUISH_INCLUDE_DIR)
|
||||||
|
# in cache already
|
||||||
|
SET(SQUISH_FIND_QUIETLY TRUE)
|
||||||
|
ENDIF(SQUISH_LIBRARY AND SQUISH_INCLUDE_DIR)
|
||||||
|
|
||||||
|
FIND_PATH(SQUISH_INCLUDE_DIR
|
||||||
|
squish.h
|
||||||
|
PATHS
|
||||||
|
/usr/local/include
|
||||||
|
/usr/include
|
||||||
|
/sw/include
|
||||||
|
/opt/local/include
|
||||||
|
/opt/csw/include
|
||||||
|
/opt/include
|
||||||
|
PATH_SUFFIXES cppunit
|
||||||
|
)
|
||||||
|
|
||||||
|
FIND_LIBRARY(SQUISH_LIBRARY
|
||||||
|
squish
|
||||||
|
PATHS
|
||||||
|
/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(SQUISH_LIBRARY AND SQUISH_INCLUDE_DIR)
|
||||||
|
SET(SQUISH_FOUND "YES")
|
||||||
|
IF(NOT SQUISH_FIND_QUIETLY)
|
||||||
|
MESSAGE(STATUS "Found Squish: ${SQUISH_LIBRARY}")
|
||||||
|
ENDIF(NOT SQUISH_FIND_QUIETLY)
|
||||||
|
ELSE(SQUISH_LIBRARY AND SQUISH_INCLUDE_DIR)
|
||||||
|
IF(NOT SQUISH_FIND_QUIETLY)
|
||||||
|
MESSAGE(STATUS "Warning: Unable to find Squish!")
|
||||||
|
ENDIF(NOT SQUISH_FIND_QUIETLY)
|
||||||
|
ENDIF(SQUISH_LIBRARY AND SQUISH_INCLUDE_DIR)
|
||||||
|
|
Loading…
Reference in a new issue