Merge branch 'ryzom/ark-features' into main/gingo-test
[ryzomcore.git] / CMakeModules / FindEFXUtil.cmake
blob628a0eba50adc5757e605b2667f910b0d60f4567
1 # - Locate EFX-Util library
2 # This module defines
3 #  EFXUTIL_LIBRARY, the library to link against
4 #  EFXUTIL_FOUND, if false, do not try to link to EFX-Util
5 #  EFXUTIL_INCLUDE_DIR, where to find headers.
7 IF(EFXUTIL_LIBRARY AND EFXUTIL_INCLUDE_DIR)
8   # in cache already
9   SET(EFXUTIL_FIND_QUIETLY TRUE)
10 ENDIF()
13 FIND_PATH(EFXUTIL_INCLUDE_DIR
14   EFX-Util.h
15   PATHS
16   $ENV{EFXUTIL_DIR}/include
17   /usr/local/include
18   /usr/include
19   /sw/include
20   /opt/local/include
21   /opt/csw/include
22   /opt/include
23   PATH_SUFFIXES AL
26 FIND_LIBRARY(EFXUTIL_LIBRARY
27   NAMES EFX-Util efxutil libefxutil
28   PATHS
29   $ENV{EFXUTIL_DIR}/lib
30   /usr/local/lib
31   /usr/lib
32   /usr/local/X11R6/lib
33   /usr/X11R6/lib
34   /sw/lib
35   /opt/local/lib
36   /opt/csw/lib
37   /opt/lib
38   /usr/freeware/lib64
41 IF(EFXUTIL_LIBRARY AND EFXUTIL_INCLUDE_DIR)
42   SET(EFXUTIL_FOUND "YES")
43   IF(NOT EFXUTIL_FIND_QUIETLY)
44     MESSAGE(STATUS "Found EFX-Util: ${EFXUTIL_LIBRARY}")
45   ENDIF()
46 ELSE()
47   IF(NOT EFXUTIL_FIND_QUIETLY)
48     MESSAGE(STATUS "Warning: Unable to find EFX-Util!")
49   ENDIF()
50 ENDIF()