Last change
on this file since 996 was
996,
checked in by bknecht, 17 years ago
|
tolua++ works now. A level will now be sent through lua, before getting loaded by tinyxml.
|
File size:
848 bytes
|
Line | |
---|
1 | # Find Lua includes and library |
---|
2 | # |
---|
3 | # This module defines |
---|
4 | # ToLua_INCLUDE_DIR |
---|
5 | # ToLua_LIBRARIES, the libraries to link against to use Lua. |
---|
6 | # ToLua_LIB_DIR, the location of the libraries |
---|
7 | # ToLua_FOUND, If false, do not try to use Lua |
---|
8 | # |
---|
9 | # Copyright © 2007, Matt Williams |
---|
10 | # |
---|
11 | # Redistribution and use is allowed according to the terms of the BSD license. |
---|
12 | |
---|
13 | IF (ToLua_LIBRARIES) |
---|
14 | SET(ToLua_FIND_QUIETLY TRUE) # Already in cache, be silent |
---|
15 | ENDIF (ToLua_LIBRARIES) |
---|
16 | |
---|
17 | FIND_LIBRARY(ToLua_LIBRARIES tolua++5.1 |
---|
18 | /usr/lib |
---|
19 | /usr/local/lib) |
---|
20 | |
---|
21 | IF (ToLua_LIBRARIES) |
---|
22 | SET(ToLua_FOUND TRUE) |
---|
23 | ENDIF (ToLua_LIBRARIES) |
---|
24 | |
---|
25 | IF (ToLua_FOUND) |
---|
26 | MESSAGE(STATUS "Found ToLua: ${ToLua_LIBRARIES}") |
---|
27 | ELSE (ToLua_FOUND) |
---|
28 | IF (ToLua_FIND_REQUIRED) |
---|
29 | MESSAGE(FATAL_ERROR "Could not find ToLua") |
---|
30 | ENDIF (ToLua_FIND_REQUIRED) |
---|
31 | ENDIF (ToLua_FOUND) |
---|
Note: See
TracBrowser
for help on using the repository browser.