Last change
on this file since 2605 was
2583,
checked in by rgrieder, 16 years ago
|
- Use $ENV{BOOST_ROOT} to find boost if possible
- Set TOLUA_PARSER_WORKING_DIRECTORY now defaults to ${CMAKE_RUNTIME_OUTPUT_PATH}
- Added bin/release, bin/debug, release and debug to the Ogre library prefix paths
- Lots of small fixes and changes
|
-
Property svn:eol-style set to
native
|
File size:
1.4 KB
|
Rev | Line | |
---|
[1505] | 1 | # - Try to find enet |
---|
| 2 | # Once done this will define |
---|
| 3 | # |
---|
| 4 | # ENET_FOUND - system has enet |
---|
[2509] | 5 | # ENet_INCLUDE_DIR - the enet include directory |
---|
| 6 | # ENet_LIBRARIES - the libraries needed to use enet |
---|
[1505] | 7 | # |
---|
[2509] | 8 | # $ENETDIR is an environment variable used for finding enet. |
---|
| 9 | # |
---|
[1505] | 10 | # Borrowed from The Mana World |
---|
| 11 | # http://themanaworld.org/ |
---|
| 12 | # |
---|
[1776] | 13 | # Several changes and additions by Fabian 'x3n' Landau |
---|
[2509] | 14 | # Lots of simplifications by Adrian Friedli |
---|
[1776] | 15 | # > www.orxonox.net < |
---|
[1505] | 16 | |
---|
[2583] | 17 | INCLUDE(FindPackageHandleStandardArgs) |
---|
| 18 | INCLUDE(HandleLibraryTypes) |
---|
| 19 | |
---|
[2581] | 20 | FIND_PATH(ENET_INCLUDE_DIR enet/enet.h |
---|
[2509] | 21 | PATHS |
---|
| 22 | $ENV{ENETDIR} |
---|
| 23 | /usr/local |
---|
| 24 | /usr |
---|
| 25 | PATH_SUFFIXES include |
---|
[2579] | 26 | ) |
---|
[2581] | 27 | FIND_LIBRARY(ENET_LIBRARY_OPTIMIZED |
---|
[1505] | 28 | NAMES enet |
---|
[2509] | 29 | PATHS |
---|
| 30 | $ENV{ENETDIR} |
---|
| 31 | /usr/local |
---|
| 32 | /usr |
---|
| 33 | PATH_SUFFIXES lib |
---|
[2579] | 34 | ) |
---|
[2581] | 35 | FIND_LIBRARY(ENET_LIBRARY_DEBUG |
---|
[2583] | 36 | NAMES enet${LIBRARY_DEBUG_POSTFIX} |
---|
[2579] | 37 | PATHS |
---|
| 38 | $ENV{ENETDIR} |
---|
| 39 | /usr/local |
---|
| 40 | /usr |
---|
| 41 | PATH_SUFFIXES lib |
---|
| 42 | ) |
---|
[1505] | 43 | |
---|
[2509] | 44 | # handle the QUIETLY and REQUIRED arguments and set ENET_FOUND to TRUE if |
---|
| 45 | # all listed variables are TRUE |
---|
[2581] | 46 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(ENET DEFAULT_MSG |
---|
| 47 | ENET_LIBRARY_OPTIMIZED |
---|
| 48 | ENET_INCLUDE_DIR |
---|
[2579] | 49 | ) |
---|
[1776] | 50 | |
---|
[2579] | 51 | # Set optimized and debug libraries |
---|
[2582] | 52 | IF(MINGW) |
---|
| 53 | # ENet is linked statically, hence we need to add some windows dependencies |
---|
| 54 | HandleLibraryTypes(ENET ws2_32 winmm) |
---|
| 55 | ELSE(MINGW) |
---|
| 56 | HandleLibraryTypes(ENET) |
---|
| 57 | ENDIF(MINGW) |
---|
[1505] | 58 | |
---|
[2579] | 59 | MARK_AS_ADVANCED( |
---|
[2581] | 60 | ENET_LIBRARY |
---|
| 61 | ENET_LIBRARY_OPTIMIZED |
---|
| 62 | ENET_LIBRARY_DEBUG |
---|
| 63 | ENET_INCLUDE_DIR |
---|
[2579] | 64 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.