Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/buildsystem2/cmake/FindENet.cmake @ 2581

Last change on this file since 2581 was 2581, checked in by rgrieder, 15 years ago

Three build fixes:

  • All ENet to ENET and ENet_LIBRARIES to ENET_LIBRARY
  • Added ugly quotes again in ConfigTardis.cmake

@x3n: If you have difficulties finding Ogre, try putting $ENV{OGRE_HOME} in ConfigMinGW.cmake between quotes, on one line with semicolons as separators.

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1# - Try to find enet
2# Once done this will define
3#
4#  ENET_FOUND - system has enet
5#  ENet_INCLUDE_DIR - the enet include directory
6#  ENet_LIBRARIES - the libraries needed to use enet
7#
8# $ENETDIR is an environment variable used for finding enet.
9#
10#  Borrowed from The Mana World
11#  http://themanaworld.org/
12#
13# Several changes and additions by Fabian 'x3n' Landau
14# Lots of simplifications by Adrian Friedli
15#                 > www.orxonox.net <
16
17FIND_PATH(ENET_INCLUDE_DIR enet/enet.h
18    PATHS
19    $ENV{ENETDIR}
20    /usr/local
21    /usr
22    PATH_SUFFIXES include
23)
24FIND_LIBRARY(ENET_LIBRARY_OPTIMIZED
25    NAMES enet
26    PATHS
27    $ENV{ENETDIR}
28    /usr/local
29    /usr
30    PATH_SUFFIXES lib
31)
32FIND_LIBRARY(ENET_LIBRARY_DEBUG
33    NAMES enet_${LIBRARY_DEBUG_POSTFIX}
34    PATHS
35    $ENV{ENETDIR}
36    /usr/local
37    /usr
38    PATH_SUFFIXES lib
39)
40
41# handle the QUIETLY and REQUIRED arguments and set ENET_FOUND to TRUE if
42# all listed variables are TRUE
43FIND_PACKAGE_HANDLE_STANDARD_ARGS(ENET DEFAULT_MSG
44    ENET_LIBRARY_OPTIMIZED
45    ENET_INCLUDE_DIR
46)
47
48# Set optimized and debug libraries
49HandleLibraryTypes(ENET ${ENET_ADDITIONAL_LIBRARIES})
50
51MARK_AS_ADVANCED(
52    ENET_LIBRARY
53    ENET_LIBRARY_OPTIMIZED
54    ENET_LIBRARY_DEBUG
55    ENET_INCLUDE_DIR
56)
Note: See TracBrowser for help on using the repository browser.