Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem/cmake/FindCEGUI.cmake @ 2274

Last change on this file since 2274 was 2197, checked in by adrfried, 16 years ago

FindCEGUI.cmake and others cleaned up

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1# Find CEGUI includes and library
2#
3# This module defines
4#  CEGUI_INCLUDE_DIR
5#  CEGUI_LIBRARY, the library to link against to use CEGUI.
6#  CEGUI_FOUND, If false, do not try to use CEGUI
7#
8# Created by Matt Williams to find OGRE libraries
9# Copyright © 2007, Matt Williams
10#
11# Modified by Nicolas Schlumberger to find CEGUI libraries
12# and make it run on the Tardis-Infrastucture of the ETH Zurich
13# Copyright 2007, Nicolas Schlumberger
14#
15# Redistribution and use is allowed according to the terms of the BSD license.
16#
17# Several changes and additions by Fabian 'x3n' Landau
18# Lots of simplifications by Adrian Friedli
19#                 > www.orxonox.net <
20
21# TODO: Determine CEGUI version
22
23FIND_PATH(CEGUI_INCLUDE_DIR CEGUI.h
24    PATHS
25    $ENV{CEGUIDIR}
26    /usr/local
27    /usr
28    PATH_SUFFIXES include include/CEGUI
29)
30
31#SET(CEGUI_LIBRARIES debug CEGUIBase_d optimized CEGUIBase)
32FIND_LIBRARY(CEGUI_LIBRARY
33    NAMES CEGUIBase
34    PATHS
35    $ENV{CEGUIDIR}
36    /usr/local
37    /usr
38    PATH_SUFFIXES lib
39)
40
41#    IF (NOT CEGUI_SCRIPT_LIBDIR)
42#        # Search Lua script module
43#        SET(CEGUI_SCRIPT_LIBRARIES "CEGUILuaScriptModule")
44#        FIND_LIBRARY(CEGUI_SCRIPT_LIBDIR NAMES ${CEGUI_SCRIPT_LIBRARIES} PATHS
45#            ../libs/cegui-0.6.1/bin
46#        )
47#       IF (NOT CEGUI_SCRIPT_LIBDIR)
48#            SET(CEGUI_SCRIPT_LIBRARIES "CEGUILua")
49#            FIND_LIBRARY(CEGUI_SCRIPT_LIBDIR NAMES ${CEGUI_SCRIPT_LIBRARIES} PATHS
50#                ../libs/cegui-0.6.1/bin
51#            )
52#            IF (NOT CEGUI_SCRIPT_LIBDIR)
53#                SET(CEGUI_SCRIPT_LIBRARIES)
54#            ENDIF (NOT CEGUI_SCRIPT_LIBDIR)
55#        ENDIF (NOT CEGUI_SCRIPT_LIBDIR)
56#    ENDIF (NOT CEGUI_SCRIPT_LIBDIR)
57
58INCLUDE(FindPackageHandleStandardArgs)
59FIND_PACKAGE_HANDLE_STANDARD_ARGS(CEGUI DEFAULT_MSG
60    CEGUI_LIBRARY
61    CEGUI_INCLUDE_DIR
62    #CEGUI_SCRIPT_LIBRARIES
63)
64
65MARK_AS_ADVANCED(
66    CEGUI_LIBRARY
67    CEGUI_INCLUDE_DIR
68    #CEGUI_SCRIPT_LIBRARIES
69)
Note: See TracBrowser for help on using the repository browser.