Removed: CMake modules from Snowballs (already in root directory)
This commit is contained in:
parent
5dff584400
commit
061b8202de
17 changed files with 0 additions and 1554 deletions
|
@ -1,51 +0,0 @@
|
|||
# - Locate CEGUI library
|
||||
# This module defines
|
||||
# CEGUI_LIBRARY, the library to link against
|
||||
# CEGUI_FOUND, if false, do not try to link to CEGUI
|
||||
# CEGUI_INCLUDE_DIRS, where to find headers.
|
||||
|
||||
IF(CEGUI_LIBRARY AND CEGUI_INCLUDE_DIRS)
|
||||
# in cache already
|
||||
SET(CEGUI_FIND_QUIETLY TRUE)
|
||||
ENDIF(CEGUI_LIBRARY AND CEGUI_INCLUDE_DIRS)
|
||||
|
||||
|
||||
FIND_PATH(CEGUI_INCLUDE_DIRS
|
||||
CEGUI
|
||||
PATHS
|
||||
$ENV{CEGUI_DIR}/include
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
/sw/include
|
||||
/opt/local/include
|
||||
/opt/csw/include
|
||||
/opt/include
|
||||
PATH_SUFFIXES cegui CEGUI
|
||||
)
|
||||
|
||||
FIND_LIBRARY(CEGUI_LIBRARY
|
||||
NAMES CEGUIBase
|
||||
PATHS
|
||||
$ENV{CEGUI_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(CEGUI_LIBRARY AND CEGUI_INCLUDE_DIRS)
|
||||
SET(CEGUI_FOUND "YES")
|
||||
SET(CEGUI_INCLUDE_DIRS "${CEGUI_INCLUDE_DIRS}/CEGUI")
|
||||
IF(NOT CEGUI_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found CEGUI: ${CEGUI_LIBRARY}")
|
||||
ENDIF(NOT CEGUI_FIND_QUIETLY)
|
||||
ELSE(CEGUI_LIBRARY AND CEGUI_INCLUDE_DIRS)
|
||||
IF(NOT CEGUI_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Warning: Unable to find CEGUI!")
|
||||
ENDIF(NOT CEGUI_FIND_QUIETLY)
|
||||
ENDIF(CEGUI_LIBRARY AND CEGUI_INCLUDE_DIRS)
|
|
@ -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)
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
# - Locate FreeType library
|
||||
# This module defines
|
||||
# FREETYPE_LIBRARY, the library to link against
|
||||
# FREETYPE_FOUND, if false, do not try to link to FREETYPE
|
||||
# FREETYPE_INCLUDE_DIRS, where to find headers.
|
||||
|
||||
IF(FREETYPE_LIBRARY AND FREETYPE_INCLUDE_DIRS)
|
||||
# in cache already
|
||||
SET(FREETYPE_FIND_QUIETLY TRUE)
|
||||
ENDIF(FREETYPE_LIBRARY AND FREETYPE_INCLUDE_DIRS)
|
||||
|
||||
|
||||
FIND_PATH(FREETYPE_INCLUDE_DIRS
|
||||
freetype
|
||||
PATHS
|
||||
$ENV{FREETYPE_DIR}/include
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
/sw/include
|
||||
/opt/local/include
|
||||
/opt/csw/include
|
||||
/opt/include
|
||||
PATH_SUFFIXES freetype freetype2
|
||||
)
|
||||
|
||||
FIND_LIBRARY(FREETYPE_LIBRARY
|
||||
NAMES freetype libfreetype freetype219
|
||||
PATHS
|
||||
$ENV{FREETYPE_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(FREETYPE_LIBRARY AND FREETYPE_INCLUDE_DIRS)
|
||||
SET(FREETYPE_FOUND "YES")
|
||||
IF(NOT FREETYPE_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found FreeType: ${FREETYPE_LIBRARY}")
|
||||
ENDIF(NOT FREETYPE_FIND_QUIETLY)
|
||||
ELSE(FREETYPE_LIBRARY AND FREETYPE_INCLUDE_DIRS)
|
||||
IF(NOT FREETYPE_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Warning: Unable to find FreeType!")
|
||||
ENDIF(NOT FREETYPE_FIND_QUIETLY)
|
||||
ENDIF(FREETYPE_LIBRARY AND FREETYPE_INCLUDE_DIRS)
|
|
@ -1,453 +0,0 @@
|
|||
# - Try to find GTK2
|
||||
# Once done this will define
|
||||
#
|
||||
# GTK2_FOUND - System has Boost
|
||||
# GTK2_INCLUDE_DIRS - GTK2 include directory
|
||||
# GTK2_LIBRARIES - Link these to use GTK2
|
||||
# GTK2_LIBRARY_DIRS - The path to where the GTK2 library files are.
|
||||
# GTK2_DEFINITIONS - Compiler switches required for using GTK2
|
||||
#
|
||||
# Copyright (c) 2007 Andreas Schneider <mail@cynapses.org>
|
||||
#
|
||||
# Redistribution and use is allowed according to the terms of the New
|
||||
# BSD license.
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
#
|
||||
|
||||
set(GTK2_DEBUG ON)
|
||||
|
||||
macro(GTK2_DEBUG_MESSAGE _message)
|
||||
if (GTK2_DEBUG)
|
||||
message(STATUS "(DEBUG) ${_message}")
|
||||
endif (GTK2_DEBUG)
|
||||
endmacro(GTK2_DEBUG_MESSAGE _message)
|
||||
|
||||
if (GTK2_LIBRARIES AND GTK2_INCLUDE_DIRS)
|
||||
# in cache already
|
||||
set(GTK2_FOUND TRUE)
|
||||
else (GTK2_LIBRARIES AND GTK2_INCLUDE_DIRS)
|
||||
if (UNIX)
|
||||
# use pkg-config to get the directories and then use these values
|
||||
# in the FIND_PATH() and FIND_LIBRARY() calls
|
||||
include(UsePkgConfig)
|
||||
|
||||
pkgconfig(gtk+-2.0 _GTK2IncDir _GTK2LinkDir _GTK2LinkFlags _GTK2Cflags)
|
||||
|
||||
find_path(GTK2_GTK_INCLUDE_DIR
|
||||
NAMES
|
||||
gtk/gtk.h
|
||||
PATHS
|
||||
$ENV{GTK2_HOME}
|
||||
${_GTK2IncDir}
|
||||
/usr/include/gtk-2.0
|
||||
/usr/local/include/gtk-2.0
|
||||
/opt/include/gtk-2.0
|
||||
/opt/gnome/include/gtk-2.0
|
||||
/sw/include/gtk-2.0
|
||||
)
|
||||
gtk2_debug_message("GTK2_GTK_INCLUDE_DIR is ${GTK2_GTK_INCLUDE_DIR}")
|
||||
|
||||
# Some Linux distributions (e.g. Red Hat) have glibconfig.h
|
||||
# and glib.h in different directories, so we need to look
|
||||
# for both.
|
||||
# - Atanas Georgiev <atanas@cs.columbia.edu>
|
||||
pkgconfig(glib-2.0 _GLIB2IncDir _GLIB2LinkDir _GLIB2LinkFlags _GLIB2Cflags)
|
||||
pkgconfig(gmodule-2.0 _GMODULE2IncDir _GMODULE2LinkDir _GMODULE2LinkFlags _GMODULE2Cflags)
|
||||
|
||||
find_path(GTK2_GLIBCONFIG_INCLUDE_DIR
|
||||
NAMES
|
||||
glibconfig.h
|
||||
PATHS
|
||||
${_GLIB2IncDir}
|
||||
${_GMODULE2IncDir}
|
||||
/opt/gnome/lib64/glib-2.0/include
|
||||
/opt/gnome/lib/glib-2.0/include
|
||||
/opt/lib/glib-2.0/include
|
||||
/usr/lib64/glib-2.0/include
|
||||
/usr/lib/glib-2.0/include
|
||||
/sw/lib/glib-2.0/include
|
||||
)
|
||||
gtk2_debug_message("GTK2_GLIBCONFIG_INCLUDE_DIR is ${GTK2_GLIBCONFIG_INCLUDE_DIR}")
|
||||
|
||||
find_path(GTK2_GLIB_INCLUDE_DIR
|
||||
NAMES
|
||||
glib.h
|
||||
PATHS
|
||||
${_GLIB2IncDir}
|
||||
${_GMODULE2IncDir}
|
||||
/opt/include/glib-2.0
|
||||
/opt/gnome/include/glib-2.0
|
||||
/usr/include/glib-2.0
|
||||
/sw/include/glib-2.0
|
||||
)
|
||||
gtk2_debug_message("GTK2_GLIB_INCLUDE_DIR is ${GTK2_GLIB_INCLUDE_DIR}")
|
||||
|
||||
pkgconfig(gdk-2.0 _GDK2IncDir _GDK2LinkDir _GDK2LinkFlags _GDK2Cflags)
|
||||
|
||||
find_path(GTK2_GDK_INCLUDE_DIR
|
||||
NAMES
|
||||
gdkconfig.h
|
||||
PATHS
|
||||
${_GDK2IncDir}
|
||||
/opt/gnome/lib/gtk-2.0/include
|
||||
/opt/gnome/lib64/gtk-2.0/include
|
||||
/opt/lib/gtk-2.0/include
|
||||
/usr/lib/gtk-2.0/include
|
||||
/usr/lib64/gtk-2.0/include
|
||||
/sw/lib/gtk-2.0/include
|
||||
)
|
||||
gtk2_debug_message("GTK2_GDK_INCLUDE_DIR is ${GTK2_GDK_INCLUDE_DIR}")
|
||||
|
||||
find_path(GTK2_GTKGL_INCLUDE_DIR
|
||||
NAMES
|
||||
gtkgl/gtkglarea.h
|
||||
PATHS
|
||||
${_GLIB2IncDir}
|
||||
/usr/include
|
||||
/usr/include/gtkgl-2.0
|
||||
/usr/local/include
|
||||
/usr/openwin/share/include
|
||||
/opt/gnome/include
|
||||
/opt/include
|
||||
/sw/include
|
||||
)
|
||||
gtk2_debug_message("GTK2_GTKGL_INCLUDE_DIR is ${GTK2_GTKGL_INCLUDE_DIR}")
|
||||
|
||||
pkgconfig(libglade-2.0 _GLADEIncDir _GLADELinkDir _GLADELinkFlags _GLADECflags)
|
||||
|
||||
find_path(GTK2_GLADE_INCLUDE_DIR
|
||||
NAMES
|
||||
glade/glade.h
|
||||
PATHS
|
||||
${_GLADEIncDir}
|
||||
/opt/gnome/include/libglade-2.0
|
||||
/usr/include/libglade-2.0
|
||||
/opt/include/libglade-2.0
|
||||
/sw/include/libglade-2.0
|
||||
)
|
||||
gtk2_debug_message("GTK2_GLADE_INCLUDE_DIR is ${GTK2_GLADE_INCLUDE_DIR}")
|
||||
|
||||
pkgconfig(pango _PANGOIncDir _PANGOLinkDir _PANGOLinkFlags _PANGOCflags)
|
||||
|
||||
find_path(GTK2_PANGO_INCLUDE_DIR
|
||||
NAMES
|
||||
pango/pango.h
|
||||
PATHS
|
||||
${_PANGOIncDir}
|
||||
/usr/include/pango-1.0
|
||||
/opt/gnome/include/pango-1.0
|
||||
/opt/include/pango-1.0
|
||||
/sw/include/pango-1.0
|
||||
)
|
||||
gtk2_debug_message("GTK2_PANGO_INCLUDE_DIR is ${GTK2_PANGO_INCLUDE_DIR}")
|
||||
|
||||
pkgconfig(cairo _CAIROIncDir _CAIROLinkDir _CAIROLinkFlags _CAIROCflags)
|
||||
|
||||
find_path(GTK2_CAIRO_INCLUDE_DIR
|
||||
NAMES
|
||||
cairo.h
|
||||
PATHS
|
||||
${_CAIROIncDir}
|
||||
/opt/gnome/include/cairo
|
||||
/usr/include
|
||||
/usr/include/cairo
|
||||
/opt/include
|
||||
/opt/include/cairo
|
||||
/sw/include
|
||||
/sw/include/cairo
|
||||
)
|
||||
gtk2_debug_message("GTK2_CAIRO_INCLUDE_DIR is ${GTK2_CAIRO_INCLUDE_DIR}")
|
||||
|
||||
pkgconfig(atk _ATKIncDir _ATKLinkDir _ATKLinkFlags _ATKCflags)
|
||||
|
||||
find_path(GTK2_ATK_INCLUDE_DIR
|
||||
NAMES
|
||||
atk/atk.h
|
||||
PATHS
|
||||
${_ATKIncDir}
|
||||
/opt/gnome/include/atk-1.0
|
||||
/usr/include/atk-1.0
|
||||
/opt/include/atk-1.0
|
||||
/sw/include/atk-1.0
|
||||
)
|
||||
gtk2_debug_message("GTK2_ATK_INCLUDE_DIR is ${GTK2_ATK_INCLUDE_DIR}")
|
||||
|
||||
find_library(GTK2_GTK_LIBRARY
|
||||
NAMES
|
||||
gtk-x11-2.0
|
||||
PATHS
|
||||
${_GTK2LinkDir}
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/usr/openwin/lib
|
||||
/usr/X11R6/lib
|
||||
/opt/gnome/lib
|
||||
/opt/lib
|
||||
/sw/lib
|
||||
)
|
||||
gtk2_debug_message("GTK2_GTK_LIBRARY is ${GTK2_GTK_LIBRARY}")
|
||||
|
||||
find_library(GTK2_GDK_LIBRARY
|
||||
NAMES
|
||||
gdk-x11-2.0
|
||||
PATHS
|
||||
${_GDK2LinkDir}
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/usr/openwin/lib
|
||||
/usr/X11R6/lib
|
||||
/opt/gnome/lib
|
||||
/opt/lib
|
||||
/sw/lib
|
||||
)
|
||||
gtk2_debug_message("GTK2_GDK_LIBRARY is ${GTK2_GDK_LIBRARY}")
|
||||
|
||||
find_library(GTK2_GDK_PIXBUF_LIBRARY
|
||||
NAMES
|
||||
gdk_pixbuf-2.0
|
||||
PATHS
|
||||
${_GDK2LinkDir}
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/usr/openwin/lib
|
||||
/usr/X11R6/lib
|
||||
/opt/gnome/lib
|
||||
/opt/lib
|
||||
/sw/lib
|
||||
)
|
||||
gtk2_debug_message("GTK2_GDK_PIXBUF_LIBRARY is ${GTK2_GDK_PIXBUF_LIBRARY}")
|
||||
|
||||
find_library(GTK2_GMODULE_LIBRARY
|
||||
NAMES
|
||||
gmodule-2.0
|
||||
PATHS
|
||||
${_GMODULE2LinkDir}
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/usr/openwin/lib
|
||||
/usr/X11R6/lib
|
||||
/opt/gnome/lib
|
||||
/opt/lib
|
||||
/sw/lib
|
||||
)
|
||||
gtk2_debug_message("GTK2_GMODULE_LIBRARY is ${GTK2_GMODULE_LIBRARY}")
|
||||
|
||||
find_library(GTK2_GTHREAD_LIBRARY
|
||||
NAMES
|
||||
gthread-2.0
|
||||
PATHS
|
||||
${_GTK2LinkDir}
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/usr/openwin/lib
|
||||
/usr/X11R6/lib
|
||||
/opt/gnome/lib
|
||||
/opt/lib
|
||||
/sw/lib
|
||||
)
|
||||
gtk2_debug_message("GTK2_GTHREAD_LIBRARY is ${GTK2_GTHREAD_LIBRARY}")
|
||||
|
||||
find_library(GTK2_GOBJECT_LIBRARY
|
||||
NAMES
|
||||
gobject-2.0
|
||||
PATHS
|
||||
${_GTK2LinkDir}
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/usr/openwin/lib
|
||||
/usr/X11R6/lib
|
||||
/opt/gnome/lib
|
||||
/opt/lib
|
||||
/sw/lib
|
||||
)
|
||||
gtk2_debug_message("GTK2_GOBJECT_LIBRARY is ${GTK2_GOBJECT_LIBRARY}")
|
||||
|
||||
find_library(GTK2_GLIB_LIBRARY
|
||||
NAMES
|
||||
glib-2.0
|
||||
PATHS
|
||||
${_GLIB2LinkDir}
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/usr/openwin/lib
|
||||
/usr/X11R6/lib
|
||||
/opt/gnome/lib
|
||||
/opt/lib
|
||||
/sw/lib
|
||||
)
|
||||
gtk2_debug_message("GTK2_GLIB_LIBRARY is ${GTK2_GLIB_LIBRARY}")
|
||||
|
||||
find_library(GTK2_GTKGL_LIBRARY
|
||||
NAMES
|
||||
gtkgl-2.0
|
||||
PATHS
|
||||
${_GTK2LinkDir}
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/usr/openwin/lib
|
||||
/usr/X11R6/lib
|
||||
/opt/gnome/lib
|
||||
/opt/lib
|
||||
/sw/lib
|
||||
)
|
||||
gtk2_debug_message("GTK2_GTKGL_LIBRARY is ${GTK2_GTKGL_LIBRARY}")
|
||||
|
||||
find_library(GTK2_GLADE_LIBRARY
|
||||
NAMES
|
||||
glade-2.0
|
||||
PATHS
|
||||
${_GLADELinkDir}
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/usr/openwin/lib
|
||||
/usr/X11R6/lib
|
||||
/opt/gnome/lib
|
||||
/opt/lib
|
||||
/sw/lib
|
||||
)
|
||||
gtk2_debug_message("GTK2_GLADE_LIBRARY is ${GTK2_GLADE_LIBRARY}")
|
||||
|
||||
find_library(GTK2_PANGO_LIBRARY
|
||||
NAMES
|
||||
pango-1.0
|
||||
PATHS
|
||||
${_PANGOLinkDir}
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/usr/openwin/lib
|
||||
/usr/X11R6/lib
|
||||
/opt/gnome/lib
|
||||
/opt/lib
|
||||
/sw/lib
|
||||
)
|
||||
gtk2_debug_message("GTK2_PANGO_LIBRARY is ${GTK2_PANGO_LIBRARY}")
|
||||
|
||||
find_library(GTK2_CAIRO_LIBRARY
|
||||
NAMES
|
||||
pangocairo-1.0
|
||||
PATHS
|
||||
${_CAIROLinkDir}
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/usr/openwin/lib
|
||||
/usr/X11R6/lib
|
||||
/opt/gnome/lib
|
||||
/opt/lib
|
||||
/sw/lib
|
||||
)
|
||||
gtk2_debug_message("GTK2_PANGO_LIBRARY is ${GTK2_CAIRO_LIBRARY}")
|
||||
|
||||
find_library(GTK2_ATK_LIBRARY
|
||||
NAMES
|
||||
atk-1.0
|
||||
PATHS
|
||||
${_ATKinkDir}
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/usr/openwin/lib
|
||||
/usr/X11R6/lib
|
||||
/opt/gnome/lib
|
||||
/opt/lib
|
||||
/sw/lib
|
||||
)
|
||||
gtk2_debug_message("GTK2_ATK_LIBRARY is ${GTK2_ATK_LIBRARY}")
|
||||
|
||||
set(GTK2_INCLUDE_DIRS
|
||||
${GTK2_GTK_INCLUDE_DIR}
|
||||
${GTK2_GLIBCONFIG_INCLUDE_DIR}
|
||||
${GTK2_GLIB_INCLUDE_DIR}
|
||||
${GTK2_GDK_INCLUDE_DIR}
|
||||
${GTK2_GLADE_INCLUDE_DIR}
|
||||
${GTK2_PANGO_INCLUDE_DIR}
|
||||
${GTK2_CAIRO_INCLUDE_DIR}
|
||||
${GTK2_ATK_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
if (GTK2_GTK_LIBRARY AND GTK2_GTK_INCLUDE_DIR)
|
||||
if (GTK2_GDK_LIBRARY AND GTK2_GDK_PIXBUF_LIBRARY AND GTK2_GDK_INCLUDE_DIR)
|
||||
if (GTK2_GMODULE_LIBRARY)
|
||||
if (GTK2_GTHREAD_LIBRARY)
|
||||
if (GTK2_GOBJECT_LIBRARY)
|
||||
if (GTK2_GLADE_LIBRARY AND GTK2_GLADE_INCLUDE_DIR)
|
||||
if (GTK2_PANGO_LIBRARY AND GTK2_PANGO_INCLUDE_DIR)
|
||||
if (GTK2_CAIRO_LIBRARY AND GTK2_CAIRO_INCLUDE_DIR)
|
||||
if (GTK2_ATK_LIBRARY AND GTK2_ATK_INCLUDE_DIR)
|
||||
|
||||
# set GTK2 libraries
|
||||
set (GTK2_LIBRARIES
|
||||
${GTK2_GTK_LIBRARY}
|
||||
${GTK2_GDK_LIBRARY}
|
||||
${GTK2_GDK_PIXBUF_LIBRARY}
|
||||
${GTK2_GMODULE_LIBRARY}
|
||||
${GTK2_GTHREAD_LIBRARY}
|
||||
${GTK2_GOBJECT_LIBRARY}
|
||||
${GTK2_GLADE_LIBRARY}
|
||||
${GTK2_PANGO_LIBRARY}
|
||||
${GTK2_CAIRO_LIBRARY}
|
||||
${GTK2_ATK_LIBRARY}
|
||||
)
|
||||
|
||||
# check for gtkgl support
|
||||
if (GTK2_GTKGL_LIBRARY AND GTK2_GTKGL_INCLUDE_DIR)
|
||||
set(GTK2_GTKGL_FOUND TRUE)
|
||||
|
||||
set(GTK2_INCLUDE_DIRS
|
||||
${GTK2_INCLUDE_DIR}
|
||||
${GTK2_GTKGL_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
set(GTK2_LIBRARIES
|
||||
${GTK2_LIBRARIES}
|
||||
${GTK2_GTKGL_LIBRARY}
|
||||
)
|
||||
endif (GTK2_GTKGL_LIBRARY AND GTK2_GTKGL_INCLUDE_DIR)
|
||||
|
||||
else (GTK2_ATK_LIBRARY AND GTK2_ATK_INCLUDE_DIR)
|
||||
message(SEND_ERROR "Could not find ATK")
|
||||
endif (GTK2_ATK_LIBRARY AND GTK2_ATK_INCLUDE_DIR)
|
||||
else (GTK2_CAIRO_LIBRARY AND GTK2_CAIRO_INCLUDE_DIR)
|
||||
message(SEND_ERROR "Could not find CAIRO")
|
||||
endif (GTK2_CAIRO_LIBRARY AND GTK2_CAIRO_INCLUDE_DIR)
|
||||
else (GTK2_PANGO_LIBRARY AND GTK2_PANGO_INCLUDE_DIR)
|
||||
message(SEND_ERROR "Could not find PANGO")
|
||||
endif (GTK2_PANGO_LIBRARY AND GTK2_PANGO_INCLUDE_DIR)
|
||||
else (GTK2_GLADE_LIBRARY AND GTK2_GLADE_INCLUDE_DIR)
|
||||
message(SEND_ERROR "Could not find GLADE")
|
||||
endif (GTK2_GLADE_LIBRARY AND GTK2_GLADE_INCLUDE_DIR)
|
||||
else (GTK2_GOBJECT_LIBRARY)
|
||||
message(SEND_ERROR "Could not find GOBJECT")
|
||||
endif (GTK2_GOBJECT_LIBRARY)
|
||||
else (GTK2_GTHREAD_LIBRARY)
|
||||
message(SEND_ERROR "Could not find GTHREAD")
|
||||
endif (GTK2_GTHREAD_LIBRARY)
|
||||
else (GTK2_GMODULE_LIBRARY)
|
||||
message(SEND_ERROR "Could not find GMODULE")
|
||||
endif (GTK2_GMODULE_LIBRARY)
|
||||
else (GTK2_GDK_LIBRARY AND GTK2_GDK_PIXBUF_LIBRARY AND GTK2_GDK_INCLUDE_DIR)
|
||||
message(SEND_ERROR "Could not find GDK (GDK_PIXBUF)")
|
||||
endif (GTK2_GDK_LIBRARY AND GTK2_GDK_PIXBUF_LIBRARY AND GTK2_GDK_INCLUDE_DIR)
|
||||
else (GTK2_GTK_LIBRARY AND GTK2_GTK_INCLUDE_DIR)
|
||||
message(SEND_ERROR "Could not find GTK2-X11")
|
||||
endif (GTK2_GTK_LIBRARY AND GTK2_GTK_INCLUDE_DIR)
|
||||
|
||||
|
||||
if (GTK2_INCLUDE_DIRS AND GTK2_LIBRARIES)
|
||||
set(GTK2_FOUND TRUE)
|
||||
endif (GTK2_INCLUDE_DIRS AND GTK2_LIBRARIES)
|
||||
|
||||
if (GTK2_FOUND)
|
||||
if (NOT GTK2_FIND_QUIETLY)
|
||||
message(STATUS "Found GTK2: ${GTK2_LIBRARIES}")
|
||||
endif (NOT GTK2_FIND_QUIETLY)
|
||||
else (GTK2_FOUND)
|
||||
if (GTK2_FIND_REQUIRED)
|
||||
message(FATAL_ERROR "Could not find GTK2")
|
||||
endif (GTK2_FIND_REQUIRED)
|
||||
endif (GTK2_FOUND)
|
||||
|
||||
# show the GTK2_INCLUDE_DIRS and GTK2_LIBRARIES variables only in the advanced view
|
||||
mark_as_advanced(GTK2_INCLUDE_DIRS GTK2_LIBRARIES)
|
||||
|
||||
endif (UNIX)
|
||||
endif (GTK2_LIBRARIES AND GTK2_INCLUDE_DIRS)
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
# - Locate Jpeg library
|
||||
# This module defines
|
||||
# JPEG_LIBRARY, the library to link against
|
||||
# JPEG_FOUND, if false, do not try to link to JPEG
|
||||
# JPEG_INCLUDE_DIR, where to find headers.
|
||||
|
||||
IF(JPEG_LIBRARY AND JPEG_INCLUDE_DIR)
|
||||
# in cache already
|
||||
SET(JPEG_FIND_QUIETLY TRUE)
|
||||
ENDIF(JPEG_LIBRARY AND JPEG_INCLUDE_DIR)
|
||||
|
||||
|
||||
FIND_PATH(JPEG_INCLUDE_DIR
|
||||
jpeglib.h
|
||||
PATHS
|
||||
$ENV{JPEG_DIR}/include
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
/sw/include
|
||||
/opt/local/include
|
||||
/opt/csw/include
|
||||
/opt/include
|
||||
PATH_SUFFIXES jpeg
|
||||
)
|
||||
|
||||
FIND_LIBRARY(JPEG_LIBRARY
|
||||
NAMES jpeg libjpeg
|
||||
PATHS
|
||||
$ENV{JPEG_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(JPEG_LIBRARY AND JPEG_INCLUDE_DIR)
|
||||
SET(JPEG_FOUND "YES")
|
||||
IF(NOT JPEG_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found Jpeg: ${JPEG_LIBRARY}")
|
||||
ENDIF(NOT JPEG_FIND_QUIETLY)
|
||||
ELSE(JPEG_LIBRARY AND JPEG_INCLUDE_DIR)
|
||||
IF(NOT JPEG_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Warning: Unable to find Jpeg!")
|
||||
ENDIF(NOT JPEG_FIND_QUIETLY)
|
||||
ENDIF(JPEG_LIBRARY AND JPEG_INCLUDE_DIR)
|
|
@ -1,49 +0,0 @@
|
|||
# - Find MySQL
|
||||
# Find the MySQL includes and client library
|
||||
# This module defines
|
||||
# MYSQL_INCLUDE_DIR, where to find mysql.h
|
||||
# MYSQL_LIBRARIES, the libraries needed to use MySQL.
|
||||
# MYSQL_FOUND, If false, do not try to use MySQL.
|
||||
#
|
||||
# Copyright (c) 2006, Jaroslaw Staniek, <js@iidea.pl>
|
||||
#
|
||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
|
||||
IF(MYSQL_INCLUDE_DIR AND MYSQL_LIBRARIES)
|
||||
SET(MYSQL_FOUND TRUE)
|
||||
|
||||
ELSE(MYSQL_INCLUDE_DIR AND MYSQL_LIBRARIES)
|
||||
|
||||
FIND_PATH(MYSQL_INCLUDE_DIR mysql.h
|
||||
/usr/include/mysql
|
||||
/usr/local/include/mysql
|
||||
$ENV{ProgramFiles}/MySQL/*/include
|
||||
$ENV{SystemDrive}/MySQL/*/include)
|
||||
|
||||
IF(WIN32 AND MSVC)
|
||||
FIND_LIBRARY(MYSQL_LIBRARIES NAMES libmysql
|
||||
PATHS
|
||||
$ENV{ProgramFiles}/MySQL/*/lib/opt
|
||||
$ENV{SystemDrive}/MySQL/*/lib/opt)
|
||||
ELSE(WIN32 AND MSVC)
|
||||
FIND_LIBRARY(MYSQL_LIBRARIES NAMES mysqlclient
|
||||
PATHS
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/usr/lib/mysql
|
||||
/usr/local/lib/mysql
|
||||
)
|
||||
ENDIF(WIN32 AND MSVC)
|
||||
|
||||
IF(MYSQL_INCLUDE_DIR AND MYSQL_LIBRARIES)
|
||||
SET(MYSQL_FOUND TRUE)
|
||||
MESSAGE(STATUS "Found MySQL: ${MYSQL_INCLUDE_DIR}, ${MYSQL_LIBRARIES}")
|
||||
ELSE(MYSQL_INCLUDE_DIR AND MYSQL_LIBRARIES)
|
||||
SET(MYSQL_FOUND FALSE)
|
||||
MESSAGE(STATUS "MySQL not found.")
|
||||
ENDIF(MYSQL_INCLUDE_DIR AND MYSQL_LIBRARIES)
|
||||
|
||||
MARK_AS_ADVANCED(MYSQL_INCLUDE_DIR MYSQL_LIBRARIES)
|
||||
|
||||
ENDIF(MYSQL_INCLUDE_DIR AND MYSQL_LIBRARIES)
|
|
@ -1,138 +0,0 @@
|
|||
# - 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 nelmisc_d)
|
||||
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 nel3d_d)
|
||||
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 nelgeorges_d)
|
||||
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 nelnet_d)
|
||||
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 nelpacs_d)
|
||||
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 nelligo_d)
|
||||
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 nelsnd_lowlevel_d)
|
||||
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 nelsound_d)
|
||||
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,52 +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
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\NeL\\NeL;]/include
|
||||
$ENV{ProgramFiles}/NeL/include
|
||||
$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 nel3d_r nel3d_d
|
||||
PATHS
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\NeL\\NeL;]/lib
|
||||
$ENV{ProgramFiles}/NeL/lib
|
||||
$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 nelgeorges_rd
|
||||
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 nelligo_rd
|
||||
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,52 +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
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\NeL\\NeL;]/include
|
||||
$ENV{ProgramFiles}/NeL/include
|
||||
$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 nelmisc_r nelmisc_d
|
||||
PATHS
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\NeL\\NeL;]/lib
|
||||
$ENV{ProgramFiles}/NeL/lib
|
||||
$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,52 +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
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\NeL\\NeL;]/include
|
||||
$ENV{ProgramFiles}/NeL/include
|
||||
$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 nelnet_r nelnet_d
|
||||
PATHS
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\NeL\\NeL;]/lib
|
||||
$ENV{ProgramFiles}/NeL/lib
|
||||
$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,125 +0,0 @@
|
|||
# - 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(NELNS_NAMING_SERVICE_BIN AND NELNS_COMMON_CFG)
|
||||
# in cache already
|
||||
SET(NELNS_FIND_QUIETLY TRUE)
|
||||
ENDIF(NELNS_NAMING_SERVICE_BIN AND NELNS_COMMON_CFG)
|
||||
|
||||
# Assume we find NeL and correct it along the way.
|
||||
SET(NELNS_FOUND "YES")
|
||||
|
||||
# determine the components to retrieve.
|
||||
IF(NOT NeLNS_FIND_COMPONENTS)
|
||||
# We must always have naming_service.
|
||||
SET(NeLNS_FIND_COMPONENTS naming_service)
|
||||
ELSE(NOT NeLNS_FIND_COMPONENTS)
|
||||
# Make sure we have naming_service in the list.
|
||||
LIST(FIND NeLNS_FIND_COMPONENTS naming_service TMP_FIND_NELNS)
|
||||
IF(TMP_FIND_NELNS EQUAL -1)
|
||||
LIST(APPEND NeLNS_FIND_COMPONENTS naming_service)
|
||||
ENDIF(TMP_FIND_NELNS EQUAL -1)
|
||||
ENDIF(NOT NeLNS_FIND_COMPONENTS)
|
||||
|
||||
FIND_FILE(NELNS_COMMON_CFG
|
||||
NAME NAME common.cfg
|
||||
PATHS
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\NeL\\NeLNS;]/etc/nel/nelns
|
||||
$ENV{ProgramFiles}/NeLNS/etc/nel/nelns
|
||||
$ENV{NELNS_DIR}/etc/nel/nelns)
|
||||
|
||||
# Make sure we found the include files.
|
||||
IF(NOT NELNS_COMMON_CFG)
|
||||
SET(NEL_FOUND "NO")
|
||||
ENDIF(NOT NELNS_COMMON_CFG)
|
||||
|
||||
# A utility macro to wrap NeL finds...
|
||||
MACRO(FIND_NELNS_PROGRAM NELNSPROGRAM NELNSBINNAME)
|
||||
FIND_PROGRAM(NELNS_${NELNSPROGRAM}_BIN
|
||||
NAME ${NELNSBINNAME}
|
||||
PATHS
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\NeL\\NeLNS;]/sbin
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\NeL\\NeLNS;]/bin
|
||||
$ENV{ProgramFiles}/NeLNS/sbin
|
||||
$ENV{ProgramFiles}/NeLNS/bin
|
||||
$ENV{NELNS_DIR}/sbin
|
||||
$ENV{NELNS_DIR}/bin)
|
||||
FIND_FILE(NELNS_${NELNSPROGRAM}_CFG
|
||||
NAME NAME ${NELNSBINNAME}.cfg
|
||||
PATHS
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\NeL\\NeL;]/etc/nel/nelns
|
||||
$ENV{ProgramFiles}/NeLNS/etc/nel/nelns
|
||||
$ENV{NELNS_DIR}/etc/nel/nelns)
|
||||
ENDMACRO(FIND_NELNS_PROGRAM NELNSPROGRAM)
|
||||
|
||||
|
||||
# Find the library for each required library.
|
||||
FOREACH(NL_F_COMPONENT ${NeLNS_FIND_COMPONENTS})
|
||||
|
||||
# Check for NeL Naming Service
|
||||
IF(NL_F_COMPONENT STREQUAL "naming_service")
|
||||
FIND_NELNS_PROGRAM(NAMING_SERVICE naming_service)
|
||||
|
||||
IF(NOT NELNS_NAMING_SERVICE_BIN OR NOT NELNS_NAMING_SERVICE_CFG)
|
||||
SET(NELNS_FOUND "NO")
|
||||
ENDIF(NOT NELNS_NAMING_SERVICE_BIN OR NOT NELNS_NAMING_SERVICE_CFG)
|
||||
|
||||
# Check for NeL Login Service
|
||||
ELSEIF(NL_F_COMPONENT STREQUAL "login_service")
|
||||
FIND_NELNS_PROGRAM(LOGIN_SERVICE login_service)
|
||||
|
||||
IF(NOT NELNS_LOGIN_SERVICE_BIN OR NOT NELNS_LOGIN_SERVICE_CFG)
|
||||
SET(NELNS_FOUND "NO")
|
||||
ENDIF(NOT NELNS_LOGIN_SERVICE_BIN OR NOT NELNS_LOGIN_SERVICE_CFG)
|
||||
|
||||
# Check for NeL Welcome Service
|
||||
ELSEIF(NL_F_COMPONENT STREQUAL "welcome_service")
|
||||
FIND_NELNS_PROGRAM(WELCOME_SERVICE welcome_service)
|
||||
|
||||
IF(NOT NELNS_WELCOME_SERVICE_BIN OR NOT NELNS_WELCOME_SERVICE_CFG)
|
||||
SET(NELNS_FOUND "NO")
|
||||
ENDIF(NOT NELNS_WELCOME_SERVICE_BIN OR NOT NELNS_WELCOME_SERVICE_CFG)
|
||||
|
||||
# Check for NeL Admin Service
|
||||
ELSEIF(NL_F_COMPONENT STREQUAL "admin_service")
|
||||
FIND_NELNS_PROGRAM(ADMIN_SERVICE admin_service)
|
||||
|
||||
IF(NOT NELNS_ADMIN_SERVICE_BIN OR NOT NELNS_ADMIN_SERVICE_CFG)
|
||||
SET(NELNS_FOUND "NO")
|
||||
ENDIF(NOT NELNS_ADMIN_SERVICE_BIN OR NOT NELNS_ADMIN_SERVICE_CFG)
|
||||
|
||||
# Check for NeL Admin Executor Service
|
||||
ELSEIF(NL_F_COMPONENT STREQUAL "admin_executor_service")
|
||||
FIND_NELNS_PROGRAM(ADMIN_EXECUTOR_SERVICE admin_executor_service)
|
||||
|
||||
IF(NOT NELNS_ADMIN_EXECUTOR_SERVICE_BIN OR NOT NELNS_ADMIN_EXECUTOR_SERVICE_CFG)
|
||||
SET(NELNS_FOUND "NO")
|
||||
ENDIF(NOT NELNS_ADMIN_EXECUTOR_SERVICE_BIN OR NOT NELNS_ADMIN_EXECUTOR_SERVICE_CFG)
|
||||
|
||||
# Check for NeL Qt Launcher
|
||||
ELSEIF(NL_F_COMPONENT STREQUAL "nel_launcher_qt")
|
||||
FIND_NELNS_PROGRAM(NEL_LAUNCHER nel_launcher_qt)
|
||||
|
||||
IF(NOT NELNS_NEL_LAUNCHER_BIN)
|
||||
SET(NELNS_FOUND "NO")
|
||||
ENDIF(NOT NELNS_NEL_LAUNCHER_BIN)
|
||||
|
||||
# Output an error message if an unknown component is requested.
|
||||
ELSE(NL_F_COMPONENT STREQUAL "naming_service")
|
||||
MESSAGE(ERROR " Unknown component ${NL_F_COMPONENT}!!")
|
||||
SET(NELNS_FOUND "NO")
|
||||
ENDIF(NL_F_COMPONENT STREQUAL "naming_service")
|
||||
ENDFOREACH(NL_F_COMPONENT ${NeLNS_FIND_COMPONENTS})
|
||||
|
||||
IF(NELNS_FOUND STREQUAL "YES")
|
||||
IF(NOT NELNS_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found NeLNS: ${NELNS_COMMON_CFG}")
|
||||
ENDIF(NOT NELNS_FIND_QUIETLY)
|
||||
ELSE(NELNS_FOUND STREQUAL "YES")
|
||||
IF(NOT NELNS_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Warning: Unable to find NeLNS!")
|
||||
ENDIF(NOT NELNS_FIND_QUIETLY)
|
||||
ENDIF(NELNS_FOUND STREQUAL "YES")
|
|
@ -1,52 +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
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\NeL\\NeL;]/include
|
||||
$ENV{ProgramFiles}/NeL/include
|
||||
$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 nelpacs_r nelpacs_d
|
||||
PATHS
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\NeL\\NeL;]/lib
|
||||
$ENV{ProgramFiles}/NeL/lib
|
||||
$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,37 +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 nelsnd_lowlevel_r nelsnd_lowlevel_d
|
||||
PATHS
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\NeL\\NeL;]/lib
|
||||
$ENV{ProgramFiles}/NeL/lib
|
||||
$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,52 +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
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\NeL\\NeL;]/include
|
||||
$ENV{ProgramFiles}/NeL/include
|
||||
$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 nelsound_r nelsound_d
|
||||
PATHS
|
||||
[HKEY_LOCAL_MACHINE\\SOFTWARE\\NeL\\NeL;]/lib
|
||||
$ENV{ProgramFiles}/NeL/lib
|
||||
$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,194 +0,0 @@
|
|||
###
|
||||
# Build Library Name
|
||||
#
|
||||
# Arguments: name - undecorated library name
|
||||
# Sets: LIBNAME - decorated library name
|
||||
###
|
||||
MACRO(DECORATE_NEL_LIB name)
|
||||
|
||||
IF(WIN32)
|
||||
IF(NL_BUILD_MODE MATCHES "NL_RELEASE_DEBUG")
|
||||
SET(LIBNAME "${name}_rd")
|
||||
ELSE(NL_BUILD_MODE MATCHES "NL_RELEASE_DEBUG")
|
||||
IF(NL_BUILD_MODE MATCHES "NL_DEBUG")
|
||||
SET(LIBNAME "${name}_d")
|
||||
ELSE(NL_BUILD_MODE MATCHES "NL_DEBUG")
|
||||
SET(LIBNAME "${name}_r")
|
||||
ENDIF(NL_BUILD_MODE MATCHES "NL_DEBUG")
|
||||
ENDIF(NL_BUILD_MODE MATCHES "NL_RELEASE_DEBUG")
|
||||
ELSE(WIN32)
|
||||
SET(LIBNAME "${name}")
|
||||
ENDIF(WIN32)
|
||||
|
||||
ENDMACRO(DECORATE_NEL_LIB)
|
||||
|
||||
###
|
||||
# Checks build vs. source location. Prevents In-Source builds.
|
||||
###
|
||||
MACRO(CHECK_OUT_OF_SOURCE)
|
||||
IF(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
||||
MESSAGE(FATAL_ERROR "
|
||||
|
||||
CMake generation for this project is not allowed within the source directory!
|
||||
Remove the CMakeCache.txt file and try again from another folder, e.g.:
|
||||
|
||||
rm CMakeCache.txt
|
||||
mkdir cmake
|
||||
cd cmake
|
||||
cmake -G \"Unix Makefiles\" ..
|
||||
")
|
||||
ENDIF(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
||||
|
||||
ENDMACRO(CHECK_OUT_OF_SOURCE)
|
||||
|
||||
MACRO(NL_SETUP_DEFAULT_OPTIONS)
|
||||
###
|
||||
# Features
|
||||
###
|
||||
OPTION(WITH_LOGGING "With Logging" ON )
|
||||
OPTION(WITH_COVERAGE "With Code Coverage Support" OFF)
|
||||
|
||||
###
|
||||
# Optional support
|
||||
###
|
||||
OPTION(WITH_CEGUI "Build CEGUI Renderer" OFF)
|
||||
OPTION(BUILD_DASHBOARD "Build to the CDash dashboard" OFF)
|
||||
ENDMACRO(NL_SETUP_DEFAULT_OPTIONS)
|
||||
|
||||
MACRO(NL_SETUP_BUILD)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Setup the buildmode variables.
|
||||
#
|
||||
# None = NL_RELEASE_DEBUG
|
||||
# Debug = NL_DEBUG
|
||||
# Release = NL_RELEASE
|
||||
# RelWithDebInfo = NL_RELEASE_DEBUG
|
||||
# MinSizeRel = NL_RELEASE_DEBUG
|
||||
|
||||
# None = NL_RELEASE
|
||||
# Debug = NL_DEBUG
|
||||
# Release = NL_RELEASE, NL_NO_DEBUG
|
||||
# RelWithDebInfo = NL_RELEASE
|
||||
# MinSizeRel = NL_RELEASE, NL_NO_DEBUG
|
||||
|
||||
IF(CMAKE_BUILD_TYPE MATCHES "Debug")
|
||||
SET(NL_BUILD_MODE "NL_DEBUG")
|
||||
ELSE(CMAKE_BUILD_TYPE MATCHES "Debug")
|
||||
IF(CMAKE_BUILD_TYPE MATCHES "Release")
|
||||
SET(NL_BUILD_MODE "NL_RELEASE")
|
||||
ELSE(CMAKE_BUILD_TYPE MATCHES "Release")
|
||||
SET(NL_BUILD_MODE "NL_RELEASE")
|
||||
# enforce release mode if it's neither Debug nor Release
|
||||
SET(CMAKE_BUILD_TYPE "Release")
|
||||
ENDIF(CMAKE_BUILD_TYPE MATCHES "Release")
|
||||
ENDIF(CMAKE_BUILD_TYPE MATCHES "Debug")
|
||||
|
||||
IF(WIN32)
|
||||
SET(NL_DEBUG_CFLAGS "/ZI /Gy /GS-")
|
||||
SET(NL_RELEASE_CFLAGS "/Ox /Ob2 /Oi /Ot /Oy /GT /GF")
|
||||
SET(NL_RELEASEDEBUG_CFLAGS "/DNL_RELEASE_DEBUG /Ob2 /GF")
|
||||
ELSE(WIN32)
|
||||
SET(PLATFORM_CFLAGS "-ftemplate-depth-24 -D_REENTRANT -Wall -ansi -W -Wpointer-arith -Wsign-compare -Wno-deprecated-declarations -Wno-multichar -Wno-long-long -Wno-unused")
|
||||
IF(WITH_COVERAGE)
|
||||
SET(PLATFORM_CFLAGS "-fprofile-arcs -ftest-coverage ${PLATFORM_CFLAGS}")
|
||||
ENDIF(WITH_COVERAGE)
|
||||
SET(PLATFORM_LINKFLAGS "${CMAKE_THREAD_LIBS_INIT} -lc -lm -lstdc++")
|
||||
IF(NOT APPLE)
|
||||
SET(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -lrt")
|
||||
ENDIF(NOT APPLE)
|
||||
SET(NL_DEBUG_CFLAGS "-DNL_DEBUG -g")
|
||||
SET(NL_RELEASE_CFLAGS "-DNL_RELEASE -O6")
|
||||
SET(NL_RELEASEDEBUG_CFLAGS "-DNL_RELEASE_DEBUG -g -finline-functions -O3 ")
|
||||
SET(NL_NONE_CFLAGS "-DNL_RELEASE -g -finline-functions -O2 ")
|
||||
ENDIF(WIN32)
|
||||
|
||||
# Determine host CPU
|
||||
IF(UNIX AND NOT WIN32)
|
||||
FIND_PROGRAM(CMAKE_UNAME uname /bin /usr/bin /usr/local/bin )
|
||||
IF(CMAKE_UNAME)
|
||||
EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE CMAKE_SYSTEM_PROCESSOR)
|
||||
SET(CMAKE_SYSTEM_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR} CACHE INTERNAL "processor type (i386 and x86_64)")
|
||||
IF(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
|
||||
ADD_DEFINITIONS(-DHAVE_X86_64)
|
||||
ELSEIF(CMAKE_SYSTEM_PROCESSOR MATCHES "ia64")
|
||||
ADD_DEFINITIONS(-DHAVE_IA64)
|
||||
ELSE(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
|
||||
ADD_DEFINITIONS(-DHAVE_X86)
|
||||
ENDIF(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
|
||||
ELSE(CMAKE_UNAME) # Assume that if uname is not found that we're x86.
|
||||
ADD_DEFINITIONS(-DHAVE_X86)
|
||||
ENDIF(CMAKE_UNAME)
|
||||
ENDIF(UNIX AND NOT WIN32)
|
||||
|
||||
ENDMACRO(NL_SETUP_BUILD)
|
||||
|
||||
MACRO(NL_SETUP_BUILD_FLAGS)
|
||||
## None
|
||||
#SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${NL_NONE_CFLAGS} ${PLATFORM_CFLAGS} ")
|
||||
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${NL_NONE_CFLAGS} ${PLATFORM_CFLAGS} ")
|
||||
|
||||
## Debug
|
||||
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${NL_DEBUG_CFLAGS} ${PLATFORM_CFLAGS} ")
|
||||
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${NL_DEBUG_CFLAGS} ${PLATFORM_CFLAGS} ")
|
||||
|
||||
## Release
|
||||
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${NL_RELEASE_CFLAGS} ${PLATFORM_CFLAGS} ")
|
||||
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${NL_RELEASE_CFLAGS} ${PLATFORM_CFLAGS} ")
|
||||
|
||||
## RelWithDebInfo
|
||||
SET(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} ${NL_RELEASEDEBUG_CFLAGS} ${PLATFORM_CFLAGS} ")
|
||||
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} ${NL_RELEASEDEBUG_CFLAGS} ${PLATFORM_CFLAGS} ")
|
||||
|
||||
## MinSizeRel
|
||||
SET(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} ${NL_RELEASEDEBUG_CFLAGS} ${PLATFORM_CFLAGS} ")
|
||||
SET(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} ${NL_RELEASEDEBUG_CFLAGS} ${PLATFORM_CFLAGS} ")
|
||||
ENDMACRO(NL_SETUP_BUILD_FLAGS)
|
||||
|
||||
MACRO(NL_SETUP_PREFIX_PATHS)
|
||||
## Allow override of install_prefix/etc path.
|
||||
IF(NOT NL_ETC_PREFIX)
|
||||
IF(WIN32)
|
||||
SET(NL_ETC_PREFIX "../etc" CACHE PATH "Installation path for configurations")
|
||||
ELSE(WIN32)
|
||||
SET(NL_ETC_PREFIX "${CMAKE_INSTALL_PREFIX}/etc" CACHE PATH "Installation path for configurations")
|
||||
ENDIF(WIN32)
|
||||
ENDIF(NOT NL_ETC_PREFIX)
|
||||
|
||||
## Allow override of install_prefix/share path.
|
||||
IF(NOT NL_SHARE_PREFIX)
|
||||
IF(WIN32)
|
||||
SET(NL_SHARE_PREFIX "../share" CACHE PATH "Installation path for data.")
|
||||
ELSE(WIN32)
|
||||
SET(NL_SHARE_PREFIX "${CMAKE_INSTALL_PREFIX}/share" CACHE PATH "Installation path for data.")
|
||||
ENDIF(WIN32)
|
||||
ENDIF(NOT NL_SHARE_PREFIX)
|
||||
|
||||
## Allow override of install_prefix/sbin path.
|
||||
IF(NOT NL_SBIN_PREFIX)
|
||||
IF(WIN32)
|
||||
SET(NL_SBIN_PREFIX "../sbin" CACHE PATH "Installation path for admin tools and services.")
|
||||
ELSE(WIN32)
|
||||
SET(NL_SBIN_PREFIX "${CMAKE_INSTALL_PREFIX}/sbin" CACHE PATH "Installation path for admin tools and services.")
|
||||
ENDIF(WIN32)
|
||||
ENDIF(NOT NL_SBIN_PREFIX)
|
||||
|
||||
## Allow override of install_prefix/bin path.
|
||||
IF(NOT NL_BIN_PREFIX)
|
||||
IF(WIN32)
|
||||
SET(NL_BIN_PREFIX "../bin" CACHE PATH "Installation path for tools and applications.")
|
||||
ELSE(WIN32)
|
||||
SET(NL_BIN_PREFIX "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Installation path for tools and applications.")
|
||||
ENDIF(WIN32)
|
||||
ENDIF(NOT NL_BIN_PREFIX)
|
||||
|
||||
## Allow override of install_prefix/bin path.
|
||||
IF(NOT NL_LOG_PREFIX)
|
||||
IF(WIN32)
|
||||
SET(NL_LOG_PREFIX "../var/log" CACHE PATH "Installation path for tools and applications.")
|
||||
ELSE(WIN32)
|
||||
SET(NL_LOG_PREFIX "${CMAKE_INSTALL_PREFIX}/var/log" CACHE PATH "Installation path for tools and applications.")
|
||||
ENDIF(WIN32)
|
||||
ENDIF(NOT NL_LOG_PREFIX)
|
||||
|
||||
ENDMACRO(NL_SETUP_PREFIX_PATHS)
|
Loading…
Reference in a new issue