Changeset 2399 for code/branches
- Timestamp:
- Dec 10, 2008, 9:45:35 PM (16 years ago)
- Location:
- code/branches/buildsystem
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem/CMakeLists.txt
r2359 r2399 33 33 SET(CMAKE_C_FLAGS "$ENV{CFLAGS} -Wall -Wextra -Wno-unused-parameter") 34 34 SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -Wall -Wextra -Wno-unused-parameter") 35 SET(CMAKE_C_FLAGS_DEBUG "-g -ggdb ")36 SET(CMAKE_CXX_FLAGS_DEBUG "-g -ggdb ")37 SET(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG ")38 SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG ")39 SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -DNDEBUG -g -ggdb ")40 SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -DNDEBUG -g -ggdb ")41 SET(CMAKE_C_FLAGS_MINSIZEREL "-Os -DNDEBUG ")42 SET(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG ")35 SET(CMAKE_C_FLAGS_DEBUG "-g -ggdb -fPIC") 36 SET(CMAKE_CXX_FLAGS_DEBUG "-g -ggdb -fPIC") 37 SET(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG -fPIC") 38 SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG -fPIC") 39 SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -DNDEBUG -g -ggdb -fPIC") 40 SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -DNDEBUG -g -ggdb -fPIC") 41 SET(CMAKE_C_FLAGS_MINSIZEREL "-Os -DNDEBUG -fPIC") 42 SET(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG -fPIC") 43 43 44 44 SET(CMAKE_LD_FLAGS "$ENV{LDFLAGS}") -
code/branches/buildsystem/cmake/UseTolua.cmake
r2243 r2399 18 18 SET(_tolua_executable_name toluaexe_orxonox) 19 19 GET_TARGET_PROPERTY(TOLUA_EXECUTABLE "${_tolua_executable_name}" LOCATION) 20 IF(MINGW_LIBRARY_DIR) 21 SET(_tolua_command_wd "WORKING_DIRECTORY;${MINGW_LIBRARY_DIR}/lua-5.1.3/lib") 22 ELSE(MINGW_LIBRARY_DIR) 23 SET(_tolua_command_wd) 24 ENDIF(MINGW_LIBRARY_DIR) 20 25 21 26 MACRO(TOLUA _tolua_package _tolua_srcfiles_varname) … … 45 50 DEPENDS "${_tolua_executable_name}" ${TOLUA_PARSER_DEPENDENCIES} 46 51 IMPLICIT_DEPENDS CXX ${_tolua_inputfiles} 47 WORKING_DIRECTORY "${LIBRARY_OUTPUT_PATH}"52 ${_tolua_command_wd} 48 53 ) 49 54 ENDMACRO(TOLUA) -
code/branches/buildsystem/src/tolua/CMakeLists.txt
r2384 r2399 1 SET(TOLUALIB_SRC_FILES 1 ADD_LIBRARY(tolualib_orxonox STATIC 2 2 tolua_event.c 3 3 tolua_is.c … … 7 7 ) 8 8 9 ADD_LIBRARY (tolualib_orxonox SHARED ${TOLUALIB_SRC_FILES})10 9 TARGET_LINK_LIBRARIES(tolualib_orxonox ${LUA_LIBRARIES}) 11 INSTALL(TARGETS tolualib_orxonox LIBRARY DESTINATION lib) 10 11 #INSTALL(TARGETS tolualib_orxonox LIBRARY DESTINATION lib) 12 12 13 13 SET(TOLUAGEN_SRC_FILES … … 15 15 ) 16 16 17 ADD_EXECUTABLE 17 ADD_EXECUTABLE(toluaexe_orxonox ${TOLUAGEN_SRC_FILES}) 18 18 TARGET_LINK_LIBRARIES(toluaexe_orxonox tolualib_orxonox ${LUA_LIBRARIES}) 19 19
Note: See TracChangeset
for help on using the changeset viewer.