Changeset 2583
- Timestamp:
- Jan 12, 2009, 1:33:55 PM (16 years ago)
- Location:
- code/branches/buildsystem2
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/CMakeLists.txt
r2582 r2583 14 14 15 15 # Set binary output directories 16 SET( EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)17 SET( LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)18 MARK_AS_ADVANCED(EXECUTABLE_OUTPUT_PATH LIBRARY_OUTPUT_PATH)16 SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) 17 SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) 18 SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) 19 19 20 20 # Set Debug build to default when not having multi-config generator like msvc … … 25 25 ############## Platform Config ################## 26 26 27 # Config re platform specific options27 # Configure platform specific options 28 28 INCLUDE(ConfigPlatforms) 29 29 … … 40 40 ############### Library finding ################# 41 41 42 INCLUDE(FindPackageHandleStandardArgs) 43 INCLUDE(HandleLibraryTypes) 42 # Performs the search and sets the variables 44 43 45 # Performs the search and sets the variables 44 # Expand the next statement if newer boost versions than 1.36.1 are released 45 SET(Boost_ADDITIONAL_VERSIONS 1.37 1.37.0 CACHE STRING "") 46 FIND_PACKAGE(Boost 1.34 REQUIRED thread filesystem) 46 47 FIND_PACKAGE(OGRE REQUIRED) 47 48 FIND_PACKAGE(CEGUI REQUIRED) 48 49 FIND_PACKAGE(ENet REQUIRED) 49 FIND_PACKAGE(Boost 1.34 REQUIRED thread filesystem)50 50 FIND_PACKAGE(OpenAL REQUIRED) 51 51 FIND_PACKAGE(ALUT REQUIRED) … … 57 57 FIND_PACKAGE(Lua50 QUIET) 58 58 IF(NOT LUA50_FOUND) 59 60 61 62 63 64 59 # Remove variables set by Lua50 and try with Lua51 60 SET(LUA_INCLUDE_DIR) 61 SET(LUA_LIBRARY_lua) 62 SET(LUA_LIBRARY_lualib) 63 SET(LUA_LIBRARIES) 64 FIND_PACKAGE(Lua51 REQUIRED) 65 65 ENDIF(NOT LUA50_FOUND) 66 66 # Determine Lua version (Lua50 may also find Lua51) … … 71 71 FIND_PACKAGE(TCL QUIET) 72 72 IF(NOT TCL_FOUND) 73 73 MESSAGE(FATAL_ERROR "Tcl was not found.") 74 74 ENDIF(NOT TCL_FOUND) 75 75 76 76 # Hide variables created by CMake FindXX scripts 77 77 MARK_AS_ADVANCED( 78 79 80 81 78 LUA_LIBRARY_lua 79 LUA_LIBRARY_lualib 80 OPENAL_INCLUDE_DIR 81 OPENAL_LIBRARY 82 82 ) 83 83 -
code/branches/buildsystem2/bin/CMakeLists.txt
r2523 r2583 8 8 ) 9 9 10 IF( IS_TARDIS)10 IF(TARDIS) 11 11 # OGRE can't find fonts to display config screen on Tardis, 12 # so providing default config file here .12 # so providing default config file here (bug). 13 13 SET(CONFIG_FILES ${CONFIG_FILES} 14 14 linux/run-script … … 22 22 linux/orxonox.ini 23 23 ) 24 ENDIF( IS_TARDIS)24 ENDIF(TARDIS) 25 25 26 26 IF(MINGW) -
code/branches/buildsystem2/cmake/ConfigMSVC.cmake
r2582 r2583 42 42 MESSAGE(FATAL_ERROR "Could not find dependency directory for the Visual Studio libraries") 43 43 ENDIF(EXISTS ${CMAKE_SOURCE_DIR}/dependencies/orxonox_vc8) 44 MARK_AS_ADVANCED(MSVC_LIBRARY_DIR)45 44 46 45 # Set variables for the include directories and the libraries 47 SET(BOOST_INCLUDEDIR ${MSVC_LIBRARY_DIR}/boost-1.35.0/include) 48 SET(BOOST_LIBRARYDIR ${MSVC_LIBRARY_DIR}/boost-1.35.0/lib) 46 # Note: When setting ENV${} variables, make sure to use quotes when 47 # having multiple directories. 48 SET(ENV{BOOST_ROOT} ${MSVC_LIBRARY_DIR}/boost-1.35.0) 49 49 SET(ENV{CEGUIDIR} ${MSVC_LIBRARY_DIR}/cegui-0.6.1) 50 50 SET(ENV{ENETDIR} ${MSVC_LIBRARY_DIR}/enet-1.2) … … 62 62 SET(TCL_TCLSH_FOUND TRUE) 63 63 SET(ZLIB_INCLUDE_DIR ${MSVC_LIBRARY_DIR}/zlib-1.2.3/include) 64 SET(ZLIB_LIBRARY OPTIMIZED${MSVC_LIBRARY_DIR}/zlib-1.2.3/lib/zlib.lib65 DEBUG${MSVC_LIBRARY_DIR}/zlib-1.2.3/lib/zlib_d.lib)64 SET(ZLIB_LIBRARY optimized ${MSVC_LIBRARY_DIR}/zlib-1.2.3/lib/zlib.lib 65 debug ${MSVC_LIBRARY_DIR}/zlib-1.2.3/lib/zlib_d.lib) 66 66 SET(ZLIB_FOUND TRUE) 67 67 … … 85 85 SET(CMAKE_SHARED_LINKER_FLAGS " --no-undefined") 86 86 SET(CMAKE_MODULE_LINKER_FLAGS " --no-undefined") 87 88 ######################### Misc ########################## 89 90 # Set tolua working directory because lua.dll is not where tolua is 91 SET(TOLUA_PARSER_WORKING_DIRECTORY ${MSVC_LIBRARY_DIR}/bin) 87 92 ENDIF (MSVC) -
code/branches/buildsystem2/cmake/ConfigMinGW.cmake
r2582 r2583 21 21 # 22 22 # Author: 23 # ...23 # Reto Grieder 24 24 # Co-authors: 25 25 # ... … … 42 42 MESSAGE(FATAL_ERROR "Could not find dependency directory for the MinGW libraries") 43 43 ENDIF(EXISTS ${CMAKE_SOURCE_DIR}/libs) 44 MARK_AS_ADVANCED(MING_LIBRARY_DIR)45 44 46 #SET(Boost_ADDITIONAL_VERSIONS "1.36") 47 SET(BOOST_INCLUDEDIR ${MINGW_LIBRARY_DIR}/boost_1_34_1) 48 SET(BOOST_LIBRARYDIR ${MINGW_LIBRARY_DIR}/boost_1_34_1/stage/lib) 49 SET(ENV{CEGUIDIR} ${MINGW_LIBRARY_DIR}/cegui-0.6.1) 50 SET(ENV{ENETDIR} ${MINGW_LIBRARY_DIR}/enet-1.1) 51 SET(ENV{ALUTDIR} ${MINGW_LIBRARY_DIR}/freealut-1.1.0) 52 SET(ENV{OGGSDIR} ${MINGW_LIBRARY_DIR}/libogg-1.1.3 53 ${MINGW_LIBRARY_DIR}/libogg-1.1.3/src/.libs) 54 SET(ENV{VORBISDIR} ${MINGW_LIBRARY_DIR}/libogg-1.1.3 55 ${MINGW_LIBRARY_DIR}/libvorbis-1.2.0/src/.libs) 56 SET(ENV{OPENALDIR} ${MINGW_LIBRARY_DIR}/openal-0.0.8/common 57 ${MINGW_LIBRARY_DIR}/openal-0.0.8/src/.libs) 58 SET(ENV{LUA_DIR} ${MINGW_LIBRARY_DIR}/lua-5.1.3) 59 SET(ENV{OGRE_HOME} ${MINGW_LIBRARY_DIR}/ogre/OgreMain 60 ${MINGW_LIBRARY_DIR}/ogre/Samples/Common/bin/Release) 61 SET(TCL_INCLUDE_PATH ${MINGW_LIBRARY_DIR}/tcl8.5.2/generic) 62 SET(TCL_LIBRARY_PATH ${MINGW_LIBRARY_DIR}/tcl8.5.2/win/tcl85.dll) 63 SET(ZLIB_INCLUDE_DIR ${MINGW_LIBRARY_DIR}/zlib/include) 64 SET(ZLIB_LIBRARY ${MINGW_LIBRARY_DIR}/zlib/libzlib.a) 45 46 # Note: When setting ENV${} variables, make sure to use quotes when 47 # having multiple directories. 48 SET(ENV{BOOST_ROOT} "${MINGW_LIBRARY_DIR}/boost_1_34_1") 49 SET(ENV{CEGUIDIR} "${MINGW_LIBRARY_DIR}/cegui-0.6.1") 50 SET(ENV{ENETDIR} "${MINGW_LIBRARY_DIR}/enet-1.1") 51 SET(ENV{ALUTDIR} "${MINGW_LIBRARY_DIR}/freealut-1.1.0") 52 SET(ENV{OGGDIR} "${MINGW_LIBRARY_DIR}/libogg-1.1.3;${MINGW_LIBRARY_DIR}/libogg-1.1.3/src/.libs") 53 SET(ENV{VORBISDIR} "${MINGW_LIBRARY_DIR}/libogg-1.1.3;${MINGW_LIBRARY_DIR}/libvorbis-1.2.0/src/.libs") 54 SET(ENV{OPENALDIR} "${MINGW_LIBRARY_DIR}/openal-0.0.8/common;${MINGW_LIBRARY_DIR}/openal-0.0.8/src/.libs") 55 SET(ENV{LUA_DIR} "${MINGW_LIBRARY_DIR}/lua-5.1.3") 56 SET(ENV{OGRE_HOME} "${MINGW_LIBRARY_DIR}/ogre/OgreMain;${MINGW_LIBRARY_DIR}/ogre/Samples/Common") 57 SET(TCL_INCLUDE_PATH "${MINGW_LIBRARY_DIR}/tcl8.5.2/generic") 58 SET(TCL_LIBRARY_PATH "${MINGW_LIBRARY_DIR}/tcl8.5.2/win/tcl85.dll") 59 SET(ZLIB_INCLUDE_DIR "${MINGW_LIBRARY_DIR}/zlib/include") 60 SET(ZLIB_LIBRARY "${MINGW_LIBRARY_DIR}/zlib/libzlib.a") 65 61 IF (NOT ENV{DXSDK_DIR}) 66 SET(ENV{DXSDK_DIR} ${MINGW_LIBRARY_DIR}/DXSDK)62 SET(ENV{DXSDK_DIR} "${MINGW_LIBRARY_DIR}/DXSDK") 67 63 ENDIF (NOT ENV{DXSDK_DIR}) 68 64 … … 70 66 SET(CMAKE_C_FLAGS "$ENV{CFLAGS} ${ORXONOX_WARNING_FLAGS)") 71 67 SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} ${ORXONOX_WARNING_FLAGS)") 68 69 # Also set the tolua working directory because lua.dll is not where tolua ia 70 SET(TOLUA_PARSER_WORKING_DIRECTORY "${MNGW_LIBRARY_DIR}/lua-5.1.3/lib") 71 72 72 ENDIF (MINGW) -
code/branches/buildsystem2/cmake/ConfigPlatforms.cmake
r2582 r2583 32 32 ############ Misc Default Options ############### 33 33 34 # When searching for debug libraries, this is appended to the libarary name 34 35 SET(LIBRARY_DEBUG_POSTFIX "_d") 36 # Working directory for the tolua parser. Adjust for windows because lua.dll has to be there! 37 SET(TOLUA_PARSER_WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) 35 38 36 OPTION(EXTRA_WARNINGS "Enable some extra warnings ( pollutes the output heavily)")39 OPTION(EXTRA_WARNINGS "Enable some extra warnings (heavily pollutes the output)") 37 40 IF(EXTRA_WARNINGS) 38 41 SET(ORXONOX_WARNING_FLAGS "-Wextra --Wno-unsued-parameter") … … 40 43 SET(ORXONOX_WARNING_FLAGS "-Wall") 41 44 ENDIF(EXTRA_WARNINGS) 42 43 MARK_AS_ADVANCED(44 LIBRARY_DEBUG_POSTFIX45 ORXONOX_WARNINGS_FLAGS46 )47 45 48 46 ###### Default Compiler/Linker Options ########## -
code/branches/buildsystem2/cmake/ConfigTardis.cmake
r2581 r2583 6 6 IF (UNIX) 7 7 FILE(STRINGS /etc/hostname HOSTNAME LIMIT_COUNT 1) 8 IF ( "${HOSTNAME}"MATCHES "^tardis-[a-z][0-9][0-9]$")9 SET ( IS_TARDIS ON)10 ENDIF ( "${HOSTNAME}"MATCHES "^tardis-[a-z][0-9][0-9]$")8 IF (${HOSTNAME} MATCHES "^tardis-[a-z][0-9][0-9]$") 9 SET (TARDIS ON) 10 ENDIF (${HOSTNAME} MATCHES "^tardis-[a-z][0-9][0-9]$") 11 11 ENDIF (UNIX) 12 MARK_AS_ADVANCED(HOSTNAME IS_TARDIS)13 12 14 IF ( IS_TARDIS)13 IF (TARDIS) 15 14 MESSAGE(STATUS "Running on D-ITET isg.ee Tardis Computer. Using customized paths.") 16 15 SET(CMAKE_C_COMPILER "gcc-4.1") 17 16 SET(CMAKE_CXX_COMPILER "g++-4.1") 18 17 19 #SET(Boost_ADDITIONAL_VERSIONS "1.36") 18 # Note: When setting ENV${} variables, make sure to use quotes when 19 # having multiple directories. 20 20 SET(BOOST_INCLUDEDIR "/usr/pack/boost-1.34.1-sd/include") 21 21 SET(BOOST_LIBRARYDIR "/usr/pack/boost-1.34.1-sd/i686-debian-linux3.1/lib") … … 29 29 SET(ENV{OPENALDIR} "/usr/pack/openal-0.0.8-cl;/usr/pack/openal-0.0.8-cl/i686-debian-linux3.1") 30 30 #SET(TCL_INCLUDE_PATH "/usr/pack/tcltk-8.4.9.linux-mo/include") 31 ENDIF ( IS_TARDIS)31 ENDIF (TARDIS) -
code/branches/buildsystem2/cmake/DetermineVersion.cmake
r2580 r2583 17 17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 18 18 19 MACRO(D etermineVersion_name _file)19 MACRO(DETERMINE_VERSION _name _file) 20 20 FILE(READ ${_file} _file_content) 21 21 IF(_file_content) … … 42 42 MARK_AS_ADVANCED(${_name}_VERSION) 43 43 ENDIF(_file_content) 44 ENDMACRO(D etermineVersion)44 ENDMACRO(DETERMINE_VERSION) -
code/branches/buildsystem2/cmake/FindALUT.cmake
r2579 r2583 20 20 # Some simplifications by Adrian Friedli 21 21 # > www.orxonox.net < 22 23 INCLUDE(FindPackageHandleStandardArgs) 24 INCLUDE(HandleLibraryTypes) 22 25 23 26 SET(ALUT_PATHS … … 70 73 ) 71 74 FIND_LIBRARY(ALUT_LIBRARY_DEBUG 72 NAMES alut _${LIBRARY_DEBUG_POSTFIX}75 NAMES alut${LIBRARY_DEBUG_POSTFIX} 73 76 PATHS ${ALUT_PATHS} 74 77 PATH_SUFFIXES lib libs -
code/branches/buildsystem2/cmake/FindCEGUI.cmake
r2579 r2583 19 19 # > www.orxonox.net < 20 20 21 INCLUDE(FindPackageHandleStandardArgs) 22 INCLUDE(HandleLibraryTypes) 23 21 24 FIND_PATH(CEGUI_INCLUDE_DIR CEGUI.h 22 25 PATHS … … 35 38 ) 36 39 FIND_LIBRARY(CEGUI_LIBRARY_DEBUG 37 NAMES CEGUIBase _${LIBRARY_DEBUG_POSTFIX}40 NAMES CEGUIBase${LIBRARY_DEBUG_POSTFIX} 38 41 PATHS 39 42 $ENV{CEGUIDIR} … … 45 48 # Look in CEGUIVersion.h for the version number 46 49 INCLUDE(DetermineVersion) 47 D etermineVersion(CEGUI ${CEGUI_INCLUDE_DIR}/CEGUIVersion.h)50 DETERMINE_VERSION(CEGUI ${CEGUI_INCLUDE_DIR}/CEGUIVersion.h) 48 51 # STRLESS can be dangerous since it only compares strings. 49 52 # Unfortunately VERSION_LESS is only provided since CMake v2.6.2 -
code/branches/buildsystem2/cmake/FindDirectX.cmake
r2579 r2583 1 INCLUDE(FindPackageHandleStandardArgs) 2 INCLUDE(HandleLibraryTypes) 3 1 4 IF(WIN32) 2 5 # Find script for DirectX on Windows -
code/branches/buildsystem2/cmake/FindENet.cmake
r2582 r2583 14 14 # Lots of simplifications by Adrian Friedli 15 15 # > www.orxonox.net < 16 17 INCLUDE(FindPackageHandleStandardArgs) 18 INCLUDE(HandleLibraryTypes) 16 19 17 20 FIND_PATH(ENET_INCLUDE_DIR enet/enet.h … … 31 34 ) 32 35 FIND_LIBRARY(ENET_LIBRARY_DEBUG 33 NAMES enet _${LIBRARY_DEBUG_POSTFIX}36 NAMES enet${LIBRARY_DEBUG_POSTFIX} 34 37 PATHS 35 38 $ENV{ENETDIR} -
code/branches/buildsystem2/cmake/FindOGRE.cmake
r2579 r2583 15 15 # > www.orxonox.net < 16 16 17 INCLUDE(FindPackageHandleStandardArgs) 18 INCLUDE(HandleLibraryTypes) 19 17 20 FIND_PATH(OGRE_INCLUDE_DIR Ogre.h 18 PATHS 19 $ENV{OGRE_HOME} 20 /usr/local 21 /usr 21 PATHS $ENV{OGRE_HOME} /usr/local /usr 22 22 PATH_SUFFIXES include include/OGRE 23 23 ) 24 24 FIND_LIBRARY(OGRE_LIBRARY_OPTIMIZED 25 25 NAMES OgreMain 26 PATHS 27 $ENV{OGRE_HOME} 28 /usr/local 29 /usr 30 PATH_SUFFIXES lib 26 PATHS $ENV{OGRE_HOME} /usr/local /usr 27 PATH_SUFFIXES lib bin/Release bin/release 31 28 ) 32 29 FIND_LIBRARY(OGRE_LIBRARY_DEBUG 33 NAMES OgreMain_${LIBRARY_DEBUG_POSTFIX} 34 PATHS 35 $ENV{OGRE_HOME} 36 /usr/local 37 /usr 38 PATH_SUFFIXES lib 30 NAMES OgreMain${LIBRARY_DEBUG_POSTFIX} 31 PATHS $ENV{OGRE_HOME} /usr/local /usr 32 PATH_SUFFIXES lib bin/Debug bin/debug 39 33 ) 40 34 -
code/branches/buildsystem2/cmake/FindOggVorbis.cmake
r2579 r2583 17 17 # Most of all rewritten by Adrian Friedli 18 18 # > www.orxonox.net < 19 20 INCLUDE(FindPackageHandleStandardArgs) 21 INCLUDE(HandleLibraryTypes) 19 22 20 23 SET(OGG_SEARCH_PATHS … … 41 44 PATH_SUFFIXES lib 42 45 ) 43 FIND_LIBRARY(OGG_LIBRARY_DEBUG NAMES ogg _${LIBRARY_DEBUG_POSTFIX}46 FIND_LIBRARY(OGG_LIBRARY_DEBUG NAMES ogg${LIBRARY_DEBUG_POSTFIX} 44 47 PATHS ${OGG_SEARCH_PATHS} 45 48 PATH_SUFFIXES lib … … 49 52 PATH_SUFFIXES lib 50 53 ) 51 FIND_LIBRARY(VORBIS_LIBRARY_DEBUG NAMES vorbis _${LIBRARY_DEBUG_POSTFIX}54 FIND_LIBRARY(VORBIS_LIBRARY_DEBUG NAMES vorbis${LIBRARY_DEBUG_POSTFIX} 52 55 PATHS ${OGG_SEARCH_PATHS} 53 56 PATH_SUFFIXES lib … … 57 60 PATH_SUFFIXES lib 58 61 ) 59 FIND_LIBRARY(VORBISFILE_LIBRARY_DEBUG NAMES vorbisfile _${LIBRARY_DEBUG_POSTFIX}62 FIND_LIBRARY(VORBISFILE_LIBRARY_DEBUG NAMES vorbisfile${LIBRARY_DEBUG_POSTFIX} 60 63 PATHS ${OGG_SEARCH_PATHS} 61 64 PATH_SUFFIXES lib … … 70 73 FIND_PACKAGE_HANDLE_STANDARD_ARGS(VORBIS DEFAULT_MSG 71 74 VORBIS_LIBRARY_OPTIMIZED 75 VORBIS_INCLUDE_DIR 76 ) 77 FIND_PACKAGE_HANDLE_STANDARD_ARGS(VORBISFILE DEFAULT_MSG 72 78 VORBISFILE_LIBRARY_OPTIMIZED 73 79 VORBIS_INCLUDE_DIR -
code/branches/buildsystem2/cmake/HandleLibraryTypes.cmake
r2579 r2583 31 31 IF(${_name}_LIBRARY_DEBUG) 32 32 SET(${_name}_LIBRARY 33 OPTIMIZED${${_name}_LIBRARY_OPTIMIZED} ${ARGN}34 DEBUG${${_name}_LIBRARY_DEBUG} ${ARGN}33 optimized ${${_name}_LIBRARY_OPTIMIZED} ${ARGN} 34 debug ${${_name}_LIBRARY_DEBUG} ${ARGN} 35 35 CACHE STRING "${_name} library file(s)" FORCE 36 36 ) -
code/branches/buildsystem2/cmake/UseTolua.cmake
r2519 r2583 15 15 # along with this program; if not, write to the Free Software 16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 17 18 IF(MINGW_LIBRARY_DIR)19 SET(_tolua_command_wd "WORKING_DIRECTORY;${MINGW_LIBRARY_DIR}/lua-5.1.3/lib")20 ELSE(MINGW_LIBRARY_DIR)21 SET(_tolua_command_wd)22 ENDIF(MINGW_LIBRARY_DIR)23 17 24 18 MACRO(TOLUA _tolua_package _tolua_srcfiles_varname) … … 39 33 40 34 # Note: Some of the variables are already defined in src/tolua/CMakeLists.txt 35 # or in the platform config 41 36 ADD_CUSTOM_COMMAND( 42 37 OUTPUT ${_tolua_cxxfile} ${_tolua_hfile} 43 COMMAND ${TOLUA_PARSER_EXECUTABLE}-n ${_tolua_package}44 45 46 47 48 49 DEPENDS ${TOLUA_PARSER_DEPENDENCIES}38 COMMAND toluaexe_orxonox -n ${_tolua_package} 39 -w ${CMAKE_CURRENT_SOURCE_DIR} 40 -o ${_tolua_cxxfile} 41 -H ${_tolua_hfile} 42 -s ${TOLUA_PARSER_SOURCE} 43 ${_tolua_pkgfile} 44 DEPENDS ${TOLUA_PARSER_DEPENDENCIES} 50 45 IMPLICIT_DEPENDS CXX ${_tolua_inputfiles} 51 ${_tolua_command_wd} 46 WORKING_DIRECTORY ${TOLUA_PARSER_WORKING_DIRECTORY} 47 COMMENT "Generating tolua bind files for package ${_tolua_package}" 52 48 ) 53 49 ENDMACRO(TOLUA) -
code/branches/buildsystem2/src/CMakeLists.txt
r2574 r2583 3 3 ${OGRE_INCLUDE_DIR} 4 4 ${CEGUI_INCLUDE_DIR} 5 ${EN et_INCLUDE_DIR}5 ${ENET_INCLUDE_DIR} 6 6 ${Boost_INCLUDE_DIRS} 7 7 ${OPENAL_INCLUDE_DIR} … … 17 17 # Check whether the required CEGUILua version is even available 18 18 IF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua-${CEGUI_VERSION}) 19 MESSAGE(FATAL_ERROR " Your CEGUI version is not supported(${CEGUI_VERSION})")19 MESSAGE(FATAL_ERROR "No matching CEGUILua version shipped with Orxonox (${CEGUI_VERSION})") 20 20 ENDIF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua-${CEGUI_VERSION}) 21 21 … … 39 39 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTIXML_USE_TICPP") 40 40 41 # Include macros 42 INCLUDE(AddSourceFiles) 43 INCLUDE(UseTolua) 44 45 # External libraries, but copied into the repository 41 46 ADD_SUBDIRECTORY(ceguilua-${CEGUI_VERSION}/ceguilua) 42 47 ADD_SUBDIRECTORY(cpptcl) … … 46 51 ADD_SUBDIRECTORY(tolua) 47 52 48 # Include macros49 INCLUDE(AddSourceFiles)50 INCLUDE(UseTolua)51 52 53 # Our own libraries 53 54 ADD_SUBDIRECTORY(util) -
code/branches/buildsystem2/src/audio/CMakeLists.txt
r2579 r2583 19 19 ${OGG_LIBRARY} 20 20 core 21 util 21 22 ) 22 23 -
code/branches/buildsystem2/src/network/CMakeLists.txt
r2581 r2583 28 28 ${ENET_LIBRARY} 29 29 ${Boost_THREAD_LIBRARY} 30 util 30 31 core 31 32 ) -
code/branches/buildsystem2/src/ogreceguirenderer/CMakeLists.txt
r2579 r2583 7 7 ADD_LIBRARY(ogreceguirenderer_orxonox SHARED ${SRC_FILES}) 8 8 9 TARGET_LINK_LIBRARIES(ogreceguirenderer_orxonox 10 ${OGRE_LIBRARY} 11 ${CEGUI_LIBRARY} 12 ) 9 13 IF (NOT WIN32) 10 14 INSTALL(TARGETS ogreceguirenderer_orxonox LIBRARY DESTINATION lib) -
code/branches/buildsystem2/src/orxonox/OrxonoxPrereqs.h
r2261 r2583 40 40 // Shared library settings 41 41 //----------------------------------------------------------------------- 42 #define ORXONOX_NO_EXPORTS // This is an executable that needs no exports 42 43 #if (ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32) && !(defined(ORXONOX_STATIC_BUILD) || defined(ORXONOX_NO_EXPORTS)) 43 44 # ifdef ORXONOX_SHARED_BUILD -
code/branches/buildsystem2/src/tolua/CMakeLists.txt
r2579 r2583 6 6 tolua_to.c 7 7 ) 8 TARGET_LINK_LIBRARIES(tolualib_orxonox ${LUA_LIBRARY}) 8 9 9 10 IF (NOT WIN32) … … 27 28 ENDIF("${LUA_VERSION}" MATCHES "^5.0") 28 29 29 # Set some variables to the parent scope in order to use them in the TOLUA macro 30 GET_TARGET_PROPERTY(_temp_location toluaexe_orxonox LOCATION) 31 SET(TOLUA_PARSER_EXECUTABLE ${_temp_location} PARENT_SCOPE) 32 SET(TOLUA_PARSER_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/${TOLUA_ALL_PACK}" PARENT_SCOPE) 30 # Set some variables to the cache in order to use them in the TOLUA macro 31 SET(TOLUA_PARSER_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/${TOLUA_ALL_PACK}" CACHE STRING "") 33 32 SET(TOLUA_PARSER_DEPENDENCIES 34 33 toluaexe_orxonox … … 56 55 ${CMAKE_CURRENT_SOURCE_DIR}/lua/doit.lua 57 56 58 PARENT_SCOPE57 CACHE STRING "" 59 58 ) 59 MARK_AS_ADVANCED(TOLUA_PARSER_SOURCE TOLUA_PARSER_DEPENDENCIES) -
code/branches/buildsystem2/visual_studio/vc8/base.vsprops
r2570 r2583 23 23 SubSystem="1" 24 24 ImportLibrary="$(IntDir)\$(TargetName).lib" 25 TargetMachine="1"26 25 /> 27 26 </VisualStudioPropertySheet> -
code/branches/buildsystem2/visual_studio/vc8/ois.vsprops
r2516 r2583 9 9 Name="VCCLCompilerTool" 10 10 AdditionalOptions="/MP2" 11 PreprocessorDefinitions="OIS_NONCLIENT_BUILD ;OIS_DYNAMIC_LIB"11 PreprocessorDefinitions="OIS_NONCLIENT_BUILD" 12 12 /> 13 13 <Tool -
code/branches/buildsystem2/visual_studio/vc8/orxonox.vsprops
r2546 r2583 10 10 AdditionalOptions="/MP2 /Zm200" 11 11 AdditionalIncludeDirectories=""$(RootDir)\src\orxonox\pch\havepch"" 12 PreprocessorDefinitions="ORXONOX_ NO_EXPORTS;ORXONOX_ENABLE_PCH;LUA_BUILD_AS_DLL"12 PreprocessorDefinitions="ORXONOX_ENABLE_PCH" 13 13 UsePrecompiledHeader="2" 14 14 PrecompiledHeaderThrough="OrxonoxStableHeaders.h"
Note: See TracChangeset
for help on using the changeset viewer.