Update: #842 Updating the CMake build, getting rid of bad stuff like DECORATE_NEL_LIB
parent
dfc1b95c34
commit
e055fbd30b
@ -0,0 +1,5 @@
|
||||
syntax: glob
|
||||
code/nel/build/*
|
||||
code/nelns/build/*
|
||||
code/snowballs/build/*
|
||||
code/ryzom/build/*
|
@ -0,0 +1,3 @@
|
||||
syntax: regexp
|
||||
|
||||
^code\/.*?\/build\/.*
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Find the CppUnit includes and library
|
||||
#
|
||||
# This module defines
|
||||
# CPPUNIT_INCLUDE_DIR, where to find tiff.h, etc.
|
||||
# CPPUNIT_LIBRARY, where to find the CppUnit library.
|
||||
# CPPUNIT_FOUND, If false, do not try to use CppUnit.
|
||||
|
||||
# also defined, but not for general use are
|
||||
IF(CPPUNIT_LIBRARY AND CPPUNIT_INCLUDE_DIR)
|
||||
# in cache already
|
||||
SET(CPPUNIT_FIND_QUIETLY TRUE)
|
||||
ENDIF(CPPUNIT_LIBRARY AND CPPUNIT_INCLUDE_DIR)
|
||||
|
||||
FIND_PATH(CPPUNIT_INCLUDE_DIR
|
||||
cppunit/TestCase.h
|
||||
PATHS
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
/sw/include
|
||||
/opt/local/include
|
||||
/opt/csw/include
|
||||
/opt/include
|
||||
PATH_SUFFIXES cppunit
|
||||
)
|
||||
|
||||
FIND_LIBRARY(CPPUNIT_LIBRARY
|
||||
cppunit
|
||||
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(CPPUNIT_LIBRARY AND CPPUNIT_INCLUDE_DIR)
|
||||
SET(CPPUNIT_FOUND "YES")
|
||||
IF(NOT CPPUNIT_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found CppUnit: ${CPPUNIT_LIBRARY}")
|
||||
ENDIF(NOT CPPUNIT_FIND_QUIETLY)
|
||||
ELSE(CPPUNIT_LIBRARY AND CPPUNIT_INCLUDE_DIR)
|
||||
IF(NOT CPPUNIT_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Warning: Unable to find CppUnit!")
|
||||
ENDIF(NOT CPPUNIT_FIND_QUIETLY)
|
||||
ENDIF(CPPUNIT_LIBRARY AND CPPUNIT_INCLUDE_DIR)
|
||||
|
@ -0,0 +1,162 @@
|
||||
# - Locate NeL 3D library
|
||||
# This module defines
|
||||
# NEL3D_LIBRARY, the library to link against
|
||||
# NEL_FOUND, if false, do not try to link to NEL3D
|
||||
# NEL_INCLUDE_DIR, where to find headers.
|
||||
|
||||
IF(NELMISC_LIBRARY AND NEL_INCLUDE_DIR)
|
||||
# in cache already
|
||||
SET(NEL_FIND_QUIETLY TRUE)
|
||||
ENDIF(NELMISC_LIBRARY AND NEL_INCLUDE_DIR)
|
||||
|
||||
# Assume we find NeL and correct it along the way.
|
||||
SET(NEL_FOUND "YES")
|
||||
|
||||
# determine the components to retrieve.
|
||||
IF(NOT NeL_FIND_COMPONENTS)
|
||||
# We must always have nelmisc.
|
||||
SET(NeL_FIND_COMPONENTS nelmisc)
|
||||
ELSE(NOT NeL_FIND_COMPONENTS)
|
||||
# Make sure we have nelmisc in the list.
|
||||
LIST(FIND NeL_FIND_COMPONENTS nelmisc TMP_FIND_NELMISC)
|
||||
IF(TMP_FIND_NELMISC EQUAL -1)
|
||||
LIST(APPEND NeL_FIND_COMPONENTS nelmisc)
|
||||
ENDIF(TMP_FIND_NELMISC EQUAL -1)
|
||||
ENDIF(NOT NeL_FIND_COMPONENTS)
|
||||
|
||||
# Find the path to the NeL includes.
|
||||
FIND_PATH(NEL_INCLUDE_DIR nel/misc/types_nl.h
|
||||
PATHS
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\NeL\\NeL;]/include
|
||||
$ENV{ProgramFiles}/NeL/include
|
||||
$ENV{NEL_DIR}/include
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
/sw/include
|
||||
/opt/local/include
|
||||
/opt/csw/include
|
||||
/opt/include)
|
||||
|
||||
# Make sure we found the include files.
|
||||
IF(NOT NEL_INCLUDE_DIR)
|
||||
SET(NEL_FOUND "NO")
|
||||
ENDIF(NOT NEL_INCLUDE_DIR)
|
||||
|
||||
# A utility macro to wrap NeL finds...
|
||||
MACRO(FIND_NEL_LIBRARY MYLIBRARY)
|
||||
FIND_LIBRARY(${MYLIBRARY}
|
||||
NAMES ${ARGN}
|
||||
PATHS
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\NeL\\NeL;]/lib
|
||||
$ENV{ProgramFiles}/NeL/lib
|
||||
$ENV{NEL_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)
|
||||
ENDMACRO(FIND_NEL_LIBRARY MYLIBRARY)
|
||||
|
||||
|
||||
# Find the library for each required library.
|
||||
FOREACH(NL_F_COMPONENT ${NeL_FIND_COMPONENTS})
|
||||
# Check for NeL Misc
|
||||
IF(NL_F_COMPONENT STREQUAL "nelmisc")
|
||||
FIND_NEL_LIBRARY(NELMISC_LIBRARY nelmisc nelmisc_r)
|
||||
IF(WIN32)
|
||||
FIND_NEL_LIBRARY(NELMISC_LIBRARY_DEBUG nelmisc_d)
|
||||
ENDIF(WIN32)
|
||||
IF(NOT NELMISC_LIBRARY)
|
||||
SET(NEL_FOUND "NO")
|
||||
ENDIF(NOT NELMISC_LIBRARY)
|
||||
|
||||
# Check for NeL 3D
|
||||
ELSEIF(NL_F_COMPONENT STREQUAL "nel3d")
|
||||
FIND_NEL_LIBRARY(NEL3D_LIBRARY nel3d nel3d_r)
|
||||
IF(WIN32)
|
||||
FIND_NEL_LIBRARY(NEL3D_LIBRARY_DEBUG nel3d_d)
|
||||
ENDIF(WIN32)
|
||||
IF(NOT NEL3D_LIBRARY)
|
||||
SET(NEL_FOUND "NO")
|
||||
ENDIF(NOT NEL3D_LIBRARY)
|
||||
|
||||
# Check for NeL Georges
|
||||
ELSEIF(NL_F_COMPONENT STREQUAL "nelgeorges")
|
||||
FIND_NEL_LIBRARY(NELGEORGES_LIBRARY nelgeorges nelgeorges_r)
|
||||
IF(WIN32)
|
||||
FIND_NEL_LIBRARY(NELGEORGES_LIBRARY_DEBUG nelgeorges_d)
|
||||
ENDIF(WIN32)
|
||||
IF(NOT NELGEORGES_LIBRARY)
|
||||
SET(NEL_FOUND "NO")
|
||||
ENDIF(NOT NELGEORGES_LIBRARY)
|
||||
|
||||
# Check for NeL Net
|
||||
ELSEIF(NL_F_COMPONENT STREQUAL "nelnet")
|
||||
FIND_NEL_LIBRARY(NELNET_LIBRARY nelnet nelnet_r)
|
||||
IF(WIN32)
|
||||
FIND_NEL_LIBRARY(NELNET_LIBRARY_DEBUG nelnet_d)
|
||||
ENDIF(WIN32)
|
||||
IF(NOT NELNET_LIBRARY)
|
||||
SET(NEL_FOUND "NO")
|
||||
ENDIF(NOT NELNET_LIBRARY)
|
||||
|
||||
# Check for NeL PACS
|
||||
ELSEIF(NL_F_COMPONENT STREQUAL "nelpacs")
|
||||
FIND_NEL_LIBRARY(NELPACS_LIBRARY nelpacs nelpacs_r)
|
||||
IF(WIN32)
|
||||
FIND_NEL_LIBRARY(NELPACS_LIBRARY_DEBUG nelpacs_d)
|
||||
ENDIF(WIN32)
|
||||
IF(NOT NELPACS_LIBRARY)
|
||||
SET(NEL_FOUND "NO")
|
||||
ENDIF(NOT NELPACS_LIBRARY)
|
||||
|
||||
# Check for NeL Ligoscape
|
||||
ELSEIF(NL_F_COMPONENT STREQUAL "nelligo")
|
||||
FIND_NEL_LIBRARY(NELLIGO_LIBRARY nelligo nelligo_r)
|
||||
IF(WIN32)
|
||||
FIND_NEL_LIBRARY(NELLIGO_LIBRARY_DEBUG nelligo_d)
|
||||
ENDIF(WIN32)
|
||||
IF(NOT NELLIGO_LIBRARY)
|
||||
SET(NEL_FOUND "NO")
|
||||
ENDIF(NOT NELLIGO_LIBRARY)
|
||||
|
||||
# Check for NeL Sound Lowlevel
|
||||
ELSEIF(NL_F_COMPONENT STREQUAL "nelsnd_lowlevel")
|
||||
FIND_NEL_LIBRARY(NELSNDDRV_LIBRARY nelsnd_lowlevel nelsnd_lowlevel_r)
|
||||
IF(WIN32)
|
||||
FIND_NEL_LIBRARY(NELSNDDRV_LIBRARY_DEBUG nelsnd_lowlevel_d)
|
||||
ENDIF(WIN32)
|
||||
IF(NOT NELSNDDRV_LIBRARY)
|
||||
SET(NEL_FOUND "NO")
|
||||
ENDIF(NOT NELSNDDRV_LIBRARY)
|
||||
|
||||
# Check for NeL Sound
|
||||
ELSEIF(NL_F_COMPONENT STREQUAL "nelsound")
|
||||
FIND_NEL_LIBRARY(NELSOUND_LIBRARY nelsound nelsound_r)
|
||||
IF(WIN32)
|
||||
FIND_NEL_LIBRARY(NELSOUND_LIBRARY_DEBUG nelsound_d)
|
||||
ENDIF(WIN32)
|
||||
IF(NOT NELSOUND_LIBRARY)
|
||||
SET(NEL_FOUND "NO")
|
||||
ENDIF(NOT NELSOUND_LIBRARY)
|
||||
|
||||
# Output an error message if an unknown component is requested.
|
||||
ELSE(NL_F_COMPONENT STREQUAL "nelmisc")
|
||||
MESSAGE(ERROR " Unknown component ${NL_F_COMPONENT}!!")
|
||||
SET(NEL_FOUND "NO")
|
||||
ENDIF(NL_F_COMPONENT STREQUAL "nelmisc")
|
||||
ENDFOREACH(NL_F_COMPONENT ${NeL_FIND_COMPONENTS})
|
||||
|
||||
IF(NEL_FOUND STREQUAL "YES")
|
||||
IF(NOT NEL_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found NeL: ${NELMISC_LIBRARY}")
|
||||
ENDIF(NOT NEL_FIND_QUIETLY)
|
||||
ELSE(NEL_FOUND STREQUAL "YES")
|
||||
IF(NOT NEL_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Warning: Unable to find NeL!")
|
||||
ENDIF(NOT NEL_FIND_QUIETLY)
|
||||
ENDIF(NEL_FOUND STREQUAL "YES")
|
@ -1,48 +0,0 @@
|
||||
# - Locate NeL 3D library
|
||||
# This module defines
|
||||
# NEL3D_LIBRARY, the library to link against
|
||||
# NEL3D_FOUND, if false, do not try to link to NEL3D
|
||||
# NEL3D_INCLUDE_DIRS, where to find headers.
|
||||
|
||||
IF(NEL3D_LIBRARY AND NEL3D_INCLUDE_DIRS)
|
||||
# in cache already
|
||||
SET(NEL3D_FIND_QUIETLY TRUE)
|
||||
ENDIF(NEL3D_LIBRARY AND NEL3D_INCLUDE_DIRS)
|
||||
|
||||
FIND_PATH(NEL3D_INCLUDE_DIRS
|
||||
nel/3d/u_driver.h
|
||||
PATHS
|
||||
$ENV{NEL3D_DIR}/include
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
/sw/include
|
||||
/opt/local/include
|
||||
/opt/csw/include
|
||||
/opt/include
|
||||
)
|
||||
|
||||
FIND_LIBRARY(NEL3D_LIBRARY
|
||||
NAMES nel3d
|
||||
PATHS
|
||||
$ENV{NEL3D_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(NEL3D_LIBRARY AND NEL3D_INCLUDE_DIRS)
|
||||
SET(NEL3D_FOUND "YES")
|
||||
IF(NOT NEL3D_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found NeL 3D: ${NEL3D_LIBRARY}")
|
||||
ENDIF(NOT NEL3D_FIND_QUIETLY)
|
||||
ELSE(NEL3D_LIBRARY AND NEL3D_INCLUDE_DIRS)
|
||||
IF(NOT NEL3D_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Warning: Unable to find NeL 3D!")
|
||||
ENDIF(NOT NEL3D_FIND_QUIETLY)
|
||||
ENDIF(NEL3D_LIBRARY AND NEL3D_INCLUDE_DIRS)
|
@ -1,48 +0,0 @@
|
||||
# - Locate NeL GEORGES library
|
||||
# This module defines
|
||||
# NELGEORGES_LIBRARY, the library to link against
|
||||
# NELGEORGES_FOUND, if false, do not try to link to NELGEORGES
|
||||
# NELGEORGES_INCLUDE_DIRS, where to find headers.
|
||||
|
||||
IF(NELGEORGES_LIBRARY AND NELGEORGES_INCLUDE_DIRS)
|
||||
# in cache already
|
||||
SET(NELGEORGES_FIND_QUIETLY TRUE)
|
||||
ENDIF(NELGEORGES_LIBRARY AND NELGEORGES_INCLUDE_DIRS)
|
||||
|
||||
FIND_PATH(NELGEORGES_INCLUDE_DIRS
|
||||
nel/georges/u_form_loader.h
|
||||
PATHS
|
||||
$ENV{NELGEORGES_DIR}/include
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
/sw/include
|
||||
/opt/local/include
|
||||
/opt/csw/include
|
||||
/opt/include
|
||||
)
|
||||
|
||||
FIND_LIBRARY(NELGEORGES_LIBRARY
|
||||
NAMES nelgeorges
|
||||
PATHS
|
||||
$ENV{NELGEORGES_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(NELGEORGES_LIBRARY AND NELGEORGES_INCLUDE_DIRS)
|
||||
SET(NELGEORGES_FOUND "YES")
|
||||
IF(NOT NELGEORGES_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found NeL GEORGES: ${NELGEORGES_LIBRARY}")
|
||||
ENDIF(NOT NELGEORGES_FIND_QUIETLY)
|
||||
ELSE(NELGEORGES_LIBRARY AND NELGEORGES_INCLUDE_DIRS)
|
||||
IF(NOT NELGEORGES_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Warning: Unable to find NeL GEORGES!")
|
||||
ENDIF(NOT NELGEORGES_FIND_QUIETLY)
|
||||
ENDIF(NELGEORGES_LIBRARY AND NELGEORGES_INCLUDE_DIRS)
|
@ -1,48 +0,0 @@
|
||||
# - Locate NeL LIGO library
|
||||
# This module defines
|
||||
# NELLIGO_LIBRARY, the library to link against
|
||||
# NELLIGO_FOUND, if false, do not try to link to NELLIGO
|
||||
# NELLIGO_INCLUDE_DIRS, where to find headers.
|
||||
|
||||
IF(NELLIGO_LIBRARY AND NELLIGO_INCLUDE_DIRS)
|
||||
# in cache already
|
||||
SET(NELLIGO_FIND_QUIETLY TRUE)
|
||||
ENDIF(NELLIGO_LIBRARY AND NELLIGO_INCLUDE_DIRS)
|
||||
|
||||
FIND_PATH(NELLIGO_INCLUDE_DIRS
|
||||
nel/ligo/ligo_config.h
|
||||
PATHS
|
||||
$ENV{NELLIGO_DIR}/include
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
/sw/include
|
||||
/opt/local/include
|
||||
/opt/csw/include
|
||||
/opt/include
|
||||
)
|
||||
|
||||
FIND_LIBRARY(NELLIGO_LIBRARY
|
||||
NAMES nelligo
|
||||
PATHS
|
||||
$ENV{NELLIGO_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(NELLIGO_LIBRARY AND NELLIGO_INCLUDE_DIRS)
|
||||
SET(NELLIGO_FOUND "YES")
|
||||
IF(NOT NELLIGO_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found NeL LIGO: ${NELLIGO_LIBRARY}")
|
||||
ENDIF(NOT NELLIGO_FIND_QUIETLY)
|
||||
ELSE(NELLIGO_LIBRARY AND NELLIGO_INCLUDE_DIRS)
|
||||
IF(NOT NELLIGO_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Warning: Unable to find NeL LIGO!")
|
||||
ENDIF(NOT NELLIGO_FIND_QUIETLY)
|
||||
ENDIF(NELLIGO_LIBRARY AND NELLIGO_INCLUDE_DIRS)
|
@ -1,48 +0,0 @@
|
||||
# - 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)
|
@ -1,48 +0,0 @@
|
||||
# - 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)
|
@ -1,48 +0,0 @@
|
||||
# - Locate NeL PACS library
|
||||
# This module defines
|
||||
# NELPACS_LIBRARY, the library to link against
|
||||
# NELPACS_FOUND, if false, do not try to link to NELPACS
|
||||
# NELPACS_INCLUDE_DIRS, where to find headers.
|
||||
|
||||
IF(NELPACS_LIBRARY AND NELPACS_INCLUDE_DIRS)
|
||||
# in cache already
|
||||
SET(NELPACS_FIND_QUIETLY TRUE)
|
||||
ENDIF(NELPACS_LIBRARY AND NELPACS_INCLUDE_DIRS)
|
||||
|
||||
FIND_PATH(NELPACS_INCLUDE_DIRS
|
||||
nel/pacs/u_global_retriever.h
|
||||
PATHS
|
||||
$ENV{NELPACS_DIR}/include
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
/sw/include
|
||||
/opt/local/include
|
||||
/opt/csw/include
|
||||
/opt/include
|
||||
)
|
||||
|
||||
FIND_LIBRARY(NELPACS_LIBRARY
|
||||
NAMES nelpacs
|
||||
PATHS
|
||||
$ENV{NELPACS_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(NELPACS_LIBRARY AND NELPACS_INCLUDE_DIRS)
|
||||
SET(NELPACS_FOUND "YES")
|
||||
IF(NOT NELPACS_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found NeL PACS: ${NELPACS_LIBRARY}")
|
||||
ENDIF(NOT NELPACS_FIND_QUIETLY)
|
||||
ELSE(NELPACS_LIBRARY AND NELPACS_INCLUDE_DIRS)
|
||||
IF(NOT NELPACS_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Warning: Unable to find NeL PACS!")
|
||||
ENDIF(NOT NELPACS_FIND_QUIETLY)
|
||||
ENDIF(NELPACS_LIBRARY AND NELPACS_INCLUDE_DIRS)
|
@ -1,35 +0,0 @@
|
||||
# - Locate NeL SNDDRV library
|
||||
# This module defines
|
||||
# NELSNDDRV_LIBRARY, the library to link against
|
||||
# NELSNDDRV_FOUND, if false, do not try to link to NELSNDDRV
|
||||
|
||||
IF(NELSNDDRV_LIBRARY)
|
||||
# in cache already
|
||||
SET(NELSNDDRV_FIND_QUIETLY TRUE)
|
||||
ENDIF(NELSNDDRV_LIBRARY)
|
||||
|
||||
FIND_LIBRARY(NELSNDDRV_LIBRARY
|
||||
NAMES nelsnd_lowlevel
|
||||
PATHS
|
||||
$ENV{NELSNDDRV_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(NELSNDDRV_LIBRARY)
|
||||
SET(NELSNDDRV_FOUND "YES")
|
||||
IF(NOT NELSNDDRV_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found NeL Sound Lowlevel: ${NELSNDDRV_LIBRARY}")
|
||||
ENDIF(NOT NELSNDDRV_FIND_QUIETLY)
|
||||
ELSE(NELSNDDRV_LIBRARY)
|
||||
IF(NOT NELSNDDRV_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Warning: Unable to find NeL Sound Lowlevel!")
|
||||
ENDIF(NOT NELSNDDRV_FIND_QUIETLY)
|
||||
ENDIF(NELSNDDRV_LIBRARY)
|
@ -1,48 +0,0 @@
|
||||
# - Locate NeL SOUND library
|
||||
# This module defines
|
||||
# NELSOUND_LIBRARY, the library to link against
|
||||
# NELSOUND_FOUND, if false, do not try to link to NELSOUND
|
||||
# NELSOUND_INCLUDE_DIRS, where to find headers.
|
||||
|
||||
IF(NELSOUND_LIBRARY AND NELSOUND_INCLUDE_DIRS)
|
||||
# in cache already
|
||||
SET(NELSOUND_FIND_QUIETLY TRUE)
|
||||
ENDIF(NELSOUND_LIBRARY AND NELSOUND_INCLUDE_DIRS)
|
||||
|
||||
FIND_PATH(NELSOUND_INCLUDE_DIRS
|
||||
nel/sound/u_audio_mixer.h
|
||||
PATHS
|
||||
$ENV{NELSOUND_DIR}/include
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
/sw/include
|
||||
/opt/local/include
|
||||
/opt/csw/include
|
||||
/opt/include
|
||||
)
|
||||
|
||||
FIND_LIBRARY(NELSOUND_LIBRARY
|
||||
NAMES nelsound
|
||||
PATHS
|
||||
$ENV{NELSOUND_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(NELSOUND_LIBRARY AND NELSOUND_INCLUDE_DIRS)
|
||||
SET(NELSOUND_FOUND "YES")
|
||||
IF(NOT NELSOUND_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found NeL SOUND: ${NELSOUND_LIBRARY}")
|
||||
ENDIF(NOT NELSOUND_FIND_QUIETLY)
|
||||
ELSE(NELSOUND_LIBRARY AND NELSOUND_INCLUDE_DIRS)
|
||||
IF(NOT NELSOUND_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Warning: Unable to find NeL SOUND!")
|
||||
ENDIF(NOT NELSOUND_FIND_QUIETLY)
|
||||
ENDIF(NELSOUND_LIBRARY AND NELSOUND_INCLUDE_DIRS)
|
@ -1,12 +1,9 @@
|
||||
FILE(GLOB SRC *.cpp *.h)
|
||||
|
||||
DECORATE_NEL_LIB("game_share")
|
||||
SET(GAME_SHARE_LIB ${LIBNAME})
|
||||
|
||||
ADD_EXECUTABLE(pdr_util ${SRC})
|
||||
|
||||
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NELMISC_INCLUDE_DIRS})
|
||||
TARGET_LINK_LIBRARIES(pdr_util ${PLATFORM_LINKFLAGS} ${LIBXML2_LIBRARIES} ${NELMISC_LIBRARY} ${GAME_SHARE_LIB} ${NELNET_LIBRARY} ${NELLIGO_LIBRARY} ${NELGEORGES_LIBRARY})
|
||||
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NEL_INCLUDE_DIRS})
|
||||
TARGET_LINK_LIBRARIES(pdr_util game_share ${PLATFORM_LINKFLAGS} ${LIBXML2_LIBRARIES} ${NELMISC_LIBRARY} ${NELNET_LIBRARY} ${NELLIGO_LIBRARY} ${NELGEORGES_LIBRARY})
|
||||
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
||||
|
||||
INSTALL(TARGETS pdr_util RUNTIME DESTINATION bin COMPONENT tools)
|
||||
|
@ -1,12 +1,9 @@
|
||||
FILE(GLOB SRC *.cpp *.h)
|
||||
|
||||
DECORATE_NEL_LIB("game_share")
|
||||
SET(GAME_SHARE_LIB ${LIBNAME})
|
||||
|
||||
ADD_EXECUTABLE(stats_scan ${SRC})
|
||||
|
||||
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NELMISC_INCLUDE_DIRS} ${NELNET_INCLUDE_DIRS})
|
||||
TARGET_LINK_LIBRARIES(stats_scan ${PLATFORM_LINKFLAGS} ${LIBXML2_LIBRARIES} ${NELMISC_LIBRARY} ${NELNET_LIBRARY} ${GAME_SHARE_LIB} ${NELLIGO_LIBRARY} ${NELGEORGES_LIBRARY})
|
||||
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NEL_INCLUDE_DIRS} ${NELNET_INCLUDE_DIRS})
|
||||
TARGET_LINK_LIBRARIES(stats_scan game_share ${PLATFORM_LINKFLAGS} ${LIBXML2_LIBRARIES} ${NELMISC_LIBRARY} ${NELNET_LIBRARY} ${NELLIGO_LIBRARY} ${NELGEORGES_LIBRARY})
|
||||
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
||||
|
||||
INSTALL(TARGETS stats_scan RUNTIME DESTINATION bin COMPONENT tools)
|
||||
|
Loading…
Reference in New Issue