Changeset 1075 for code/trunk/src
- Timestamp:
- Apr 15, 2008, 9:04:35 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/util/tolua/CMakeLists.txt
r1073 r1075 1 PROJECT(ToLua) 2 3 #This sets where to look for modules (e.g. "Find*.cmake" files) 4 SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) 5 6 #Check whether we are on a tardis box 7 INCLUDE(CheckTardis) 8 9 ########## Compiler/Linker options ############## 10 11 # if on tardis change compiler and reset boost include directory 12 IF(IS_TARDIS) 13 MESSAGE("System is a TARDIS: Setting Compiler to g++-4.1.1") 14 # force-set the compiler on tardis machines, as default points to g++-3.3 15 SET(CMAKE_CXX_COMPILER "g++-4.1.1") 16 ENDIF(IS_TARDIS) 17 18 #set binary output directories 19 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 20 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin/lib) 21 22 # global compiler/linker flags. force -O2! 23 SET(CMAKE_C_FLAGS "$ENV{CFLAGS} -O2 -Wall -g -ggdb") 24 SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -O2 -Wall -g -ggdb") 25 SET(CMAKE_LD_FLAGS "$ENV{LDFLAGS}") 26 SET(CMAKE_EXE_LINKER_FLAGS " --no-undefined") 27 SET(CMAKE_SHARED_LINKER_FLAGS " --no-undefined") 28 SET(CMAKE_MODULE_LINKER_FLAGS " --no-undefined") 29 30 #Create verbose makefile output when compiling 31 SET(CMAKE_VERBOSE_MAKEFILE TRUE) 32 33 34 ############### Library finding ################# 35 36 #Performs the search and sets the variables 37 FIND_PACKAGE(Lua) 38 39 #Set the search paths for the linking 40 LINK_DIRECTORIES( 41 ${Lua_LIBRARIES} 42 m 43 ) 44 45 #Set the search paths for include files 46 INCLUDE_DIRECTORIES( 47 ${Lua_INCLUDE_DIR} 48 ) 49 50 51 ################ Source files ################### 52 1 53 SET (TOLUA_SRC_FILES 2 54 tolua.c
Note: See TracChangeset
for help on using the changeset viewer.