Changeset 2579
- Timestamp:
- Jan 8, 2009, 9:37:41 PM (16 years ago)
- Location:
- code/branches/buildsystem2
- Files:
-
- 3 added
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/CMakeLists.txt
r2574 r2579 11 11 SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) 12 12 13 # Check for special include paths 14 INCLUDE(ConfigTardis) 15 INCLUDE(ConfigMinGW) 13 # Configre special platforms if required 14 INCLUDE(ConfigPlatforms) 16 15 17 16 ################ Test options ################### … … 56 55 ############### Library finding ################# 57 56 57 INCLUDE(FindPackageHandleStandardArgs) 58 INCLUDE(HandleLibraryTypes) 59 58 60 # Performs the search and sets the variables 59 61 FIND_PACKAGE(OGRE REQUIRED) … … 81 83 STRING(REGEX REPLACE "^.*\"Lua (.*)\".*$" "\\1" LUA_VERSION "${LUA_VERSION}") 82 84 83 # Don't require the whole tcl rat tail85 # QUIET: Don't require the whole tcl rat tail 84 86 FIND_PACKAGE(TCL QUIET) 85 87 IF(NOT TCL_FOUND) 86 MESSAGE(FATAL_ERROR "Tcl not found.")88 MESSAGE(FATAL_ERROR "Tcl was not found.") 87 89 ENDIF(NOT TCL_FOUND) 90 91 # Hide variables created by CMake FindXX scripts 92 MARK_AS_ADVANCED( 93 LUA_LIBRARY_lua 94 LUA_LIBRARY_lualib 95 OPENAL_INCLUDE_DIR 96 OPENAL_LIBRARY 97 ) 88 98 89 99 # Add main source dir -
code/branches/buildsystem2/cmake/ConfigMinGW.cmake
r2566 r2579 26 26 # 27 27 28 ############## MinGW config###############29 # Set the library directory when using precompiled tarballs for30 # t he dependencies under windows31 ########################################### 28 ################# MinGW config #################### 29 # Set the library directory when using precompiled 30 # tarballs for the dependencies under windows 31 ################################################### 32 32 33 33 IF (MINGW) 34 34 MESSAGE(STATUS "Running on MinGW. Using customized paths.") 35 35 SET(MINGW_LIBRARY_DIR "${CMAKE_SOURCE_DIR}/../libs") 36 MARK_AS_ADVANCED(MING_LIBRARY_DIR) 37 36 38 #SET(Boost_ADDITIONAL_VERSIONS "1.36") 37 SET(BOOST_INCLUDEDIR "${MINGW_LIBRARY_DIR}/boost_1_34_1") 38 SET(BOOST_LIBRARYDIR "${MINGW_LIBRARY_DIR}/boost_1_34_1/stage/lib") 39 SET(ENV{ENETDIR} "${MINGW_LIBRARY_DIR}/enet-1.1") 40 SET(ENV{ALUTDIR} "${MINGW_LIBRARY_DIR}/freealut-1.1.0") 41 SET(ENV{OPENALDIR} "${MINGW_LIBRARY_DIR}/openal-0.0.8/common") 42 SET(ENV{LUA_DIR} "${MINGW_LIBRARY_DIR}/lua-5.1.3") 43 SET(ENV{OGGVORBISDIR} "${MINGW_LIBRARY_DIR}/oggvorbis-1.1.3-1.2.0") 44 SET(TCL_INCLUDE_PATH "${MINGW_LIBRARY_DIR}/tcl8.5.2/generic") 45 SET(TCL_LIBRARY_PATH "${MINGW_LIBRARY_DIR}/tcl8.5.2/win") 46 SET(ENV{CEGUIDIR} "${MINGW_LIBRARY_DIR}/cegui-0.6.1") 47 SET(ENV{OGREDIR} "${MINGW_LIBRARY_DIR}/ogre/OgreMain;${MINGW_LIBRARY_DIR}/ogre/Samples/Common/bin/Release") 48 SET(ZLIB_INCLUDE_DIR "${MINGW_LIBRARY_DIR}/zlib/include") 49 SET(ZLIB_LIB_DIR "${MINGW_LIBRARY_DIR}/zlib") 39 SET(BOOST_INCLUDEDIR ${MINGW_LIBRARY_DIR}/boost_1_34_1) 40 SET(BOOST_LIBRARYDIR ${MINGW_LIBRARY_DIR}/boost_1_34_1/stage/lib) 41 SET(ENV{CEGUIDIR} ${MINGW_LIBRARY_DIR}/cegui-0.6.1) 42 SET(ENV{ENETDIR} ${MINGW_LIBRARY_DIR}/enet-1.1) 43 # ENet is linked statically, hence we need to add some windows dependencies 44 SET(ENet_ADDITIONAL_LIBRARIES ws2_32 winmm) 45 SET(ENV{ALUTDIR} ${MINGW_LIBRARY_DIR}/freealut-1.1.0) 46 SET(ENV{OGGSDIR} ${MINGW_LIBRARY_DIR}/libogg-1.1.3 47 ${MINGW_LIBRARY_DIR}/libogg-1.1.3/src/.libs) 48 SET(ENV{VORBISDIR} ${MINGW_LIBRARY_DIR}/libogg-1.1.3 49 ${MINGW_LIBRARY_DIR}/libvorbis-1.2.0/src/.libs) 50 SET(ENV{OPENALDIR} ${MINGW_LIBRARY_DIR}/openal-0.0.8/common 51 ${MINGW_LIBRARY_DIR}/openal-0.0.8/src/.libs) 52 SET(ENV{LUA_DIR} ${MINGW_LIBRARY_DIR}/lua-5.1.3) 53 SET(ENV{OGRE_HOME} ${MINGW_LIBRARY_DIR}/ogre/OgreMain 54 ${MINGW_LIBRARY_DIR}/ogre/Samples/Common/bin/Release) 55 SET(TCL_INCLUDE_PATH ${MINGW_LIBRARY_DIR}/tcl8.5.2/generic) 56 SET(TCL_LIBRARY_PATH ${MINGW_LIBRARY_DIR}/tcl8.5.2/win/tcl85.dll) 57 SET(ZLIB_INCLUDE_DIR ${MINGW_LIBRARY_DIR}/zlib/include) 58 SET(ZLIB_LIBRARY ${MINGW_LIBRARY_DIR}/zlib/libzlib.a) 50 59 IF (NOT ENV{DXSDK_DIR}) 51 SET(ENV{DXSDK_DIR} "${MINGW_LIBRARY_DIR}/DXSDK")60 SET(ENV{DXSDK_DIR} ${MINGW_LIBRARY_DIR}/DXSDK) 52 61 ENDIF (NOT ENV{DXSDK_DIR}) 53 62 54 63 # MINGW doesn't like the -fPIC flag very much 55 64 SET(ORXONOX_FPIC_FLAG "") 56 ELSE (MINGW)57 SET(ORXONOX_FPIC_FLAG "-fPIC")58 65 ENDIF (MINGW) 59 66 -
code/branches/buildsystem2/cmake/ConfigTardis.cmake
r2566 r2579 16 16 SET(CMAKE_C_COMPILER "gcc-4.1") 17 17 SET(CMAKE_CXX_COMPILER "g++-4.1") 18 18 19 #SET(Boost_ADDITIONAL_VERSIONS "1.36") 19 SET(BOOST_INCLUDEDIR "/usr/pack/boost-1.34.1-sd/include") 20 SET(BOOST_LIBRARYDIR "/usr/pack/boost-1.34.1-sd/i686-debian-linux3.1/lib") 21 SET(ENV{LUA_DIR} "/usr/pack/lua-5.0.3-sd;/usr/pack/lua-5.0.3-sd/i686-debian-linux3.1") 22 SET(ENV{ALUTDIR} "/usr/pack/openal-0.0.8-cl;/usr/pack/openal-0.0.8-cl/i686-debian-linux3.1") 23 SET(ENV{OPENALDIR} "/usr/pack/openal-0.0.8-cl;/usr/pack/openal-0.0.8-cl/i686-debian-linux3.1") 24 SET(ENV{ENETDIR} "/usr/pack/enet-2007-sd;/usr/pack/enet-2007-sd/i686-debian-linux3.1") 25 SET(ENV{OGGVORBISDIR} "/usr/pack/oggvorbis-1.0-ds;/usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0") 26 #SET(TCL_INCLUDE_PATH "/usr/pack/tcltk-8.4.9.linux-mo/include") 27 SET(ENV{CEGUIDIR} "/usr/pack/cegui-0.5.0-sd;/usr/pack/cegui-0.5.0-sd/i686-debian-linux3.1") 28 SET(ENV{OGREDIR} "/usr/pack/ogre-1.4.5-sd;/usr/pack/ogre-1.4.5-sd/i686-debian-linux3.1") 20 SET(BOOST_INCLUDEDIR /usr/pack/boost-1.34.1-sd/include) 21 SET(BOOST_LIBRARYDIR /usr/pack/boost-1.34.1-sd/i686-debian-linux3.1/lib) 22 SET(ENV{CEGUIDIR} /usr/pack/cegui-0.5.0-sd 23 /usr/pack/cegui-0.5.0-sd/i686-debian-linux3.1) 24 SET(ENV{ENETDIR} /usr/pack/enet-2007-sd 25 /usr/pack/enet-2007-sd/i686-debian-linux3.1) 26 SET(ENV{ALUTDIR} /usr/pack/openal-0.0.8-cl 27 /usr/pack/openal-0.0.8-cl/i686-debian-linux3.1) 28 SET(ENV{OGGDIR} /usr/pack/oggvorbis-1.0-ds 29 /usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0) 30 SET(ENV{VORBISDIR} /usr/pack/oggvorbis-1.0-ds 31 /usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0) 32 SET(ENV{LUA_DIR} /usr/pack/lua-5.0.3-sd 33 /usr/pack/lua-5.0.3-sd/i686-debian-linux3.1) 34 SET(ENV{OGRE_HOME} /usr/pack/ogre-1.4.5-sd 35 /usr/pack/ogre-1.4.5-sd/i686-debian-linux3.1) 36 SET(ENV{OPENALDIR} /usr/pack/openal-0.0.8-cl 37 /usr/pack/openal-0.0.8-cl/i686-debian-linux3.1) 38 #SET(TCL_INCLUDE_PATH /usr/pack/tcltk-8.4.9.linux-mo/include) 29 39 ENDIF (IS_TARDIS) -
code/branches/buildsystem2/cmake/FindALUT.cmake
r2509 r2579 21 21 # > www.orxonox.net < 22 22 23 SET(ALUT_PATHS 24 $ENV{ALUTDIR} 25 /usr/local 26 /usr 27 /sw # Fink 28 /opt/local # DarwinPorts 29 /opt/csw # Blastwave 30 /opt 31 ) 32 23 33 FIND_PATH(ALUT_INCLUDE_DIR AL/alut.h 24 34 PATHS 25 $ ENV{ALUTDIR}35 ${ALUT_PATHS} 26 36 ~/Library/Frameworks/OpenAL.framework 27 37 /Library/Frameworks/OpenAL.framework 28 38 /System/Library/Frameworks/OpenAL.framework # Tiger 29 /usr/local30 /usr31 /sw # Fink32 /opt/local # DarwinPorts33 /opt/csw # Blastwave34 /opt35 39 PATH_SUFFIXES include include/OpenAL include/AL Headers 36 40 ) 37 41 38 42 # I'm not sure if I should do a special casing for Apple. It is … … 41 45 # do they want the -framework option also? 42 46 IF(${ALUT_INCLUDE_DIR} MATCHES ".framework") 47 43 48 STRING(REGEX REPLACE "(.*)/.*\\.framework/.*" "\\1" ALUT_FRAMEWORK_PATH_TMP ${ALUT_INCLUDE_DIR}) 44 49 IF("${ALUT_FRAMEWORK_PATH_TMP}" STREQUAL "/Library/Frameworks" … … 46 51 ) 47 52 # String is in default search path, don't need to use -F 48 SET (ALUT_LIBRARY "-framework OpenAL" CACHE STRING "OpenAL framework for OSX")53 SET (ALUT_LIBRARY_OPTIMIZED "-framework OpenAL" CACHE STRING "OpenAL framework for OSX") 49 54 ELSE("${ALUT_FRAMEWORK_PATH_TMP}" STREQUAL "/Library/Frameworks" 50 55 OR "${ALUT_FRAMEWORK_PATH_TMP}" STREQUAL "/System/Library/Frameworks" 51 56 ) 52 57 # String is not /Library/Frameworks, need to use -F 53 SET(ALUT_LIBRARY "-F${ALUT_FRAMEWORK_PATH_TMP} -framework OpenAL" CACHE STRING "OpenAL framework for OSX")58 SET(ALUT_LIBRARY_OPTIMIZED "-F${ALUT_FRAMEWORK_PATH_TMP} -framework OpenAL" CACHE STRING "OpenAL framework for OSX") 54 59 ENDIF("${ALUT_FRAMEWORK_PATH_TMP}" STREQUAL "/Library/Frameworks" 55 60 OR "${ALUT_FRAMEWORK_PATH_TMP}" STREQUAL "/System/Library/Frameworks" … … 59 64 60 65 ELSE(${ALUT_INCLUDE_DIR} MATCHES ".framework") 61 FIND_LIBRARY(ALUT_LIBRARY 66 FIND_LIBRARY(ALUT_LIBRARY_OPTIMIZED 62 67 NAMES alut 63 PATHS 64 $ENV{ALUTDIR} 65 /usr/local 66 /usr 67 /sw 68 /opt/local 69 /opt/csw 70 /opt 68 PATHS ${ALUT_PATHS} 71 69 PATH_SUFFIXES lib libs 72 ) 70 ) 71 FIND_LIBRARY(ALUT_LIBRARY_DEBUG 72 NAMES alut_${LIBRARY_DEBUG_POSTFIX} 73 PATHS ${ALUT_PATHS} 74 PATH_SUFFIXES lib libs 75 ) 73 76 ENDIF(${ALUT_INCLUDE_DIR} MATCHES ".framework") 74 77 75 78 # handle the QUIETLY and REQUIRED arguments and set ALUT_FOUND to TRUE if 76 79 # all listed variables are TRUE 77 INCLUDE(FindPackageHandleStandardArgs) 78 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALUT DEFAULT_MSG ALUT_LIBRARY ALUT_INCLUDE_DIR) 80 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALUT DEFAULT_MSG 81 ALUT_LIBRARY_OPTIMIZED 82 ALUT_INCLUDE_DIR 83 ) 79 84 80 MARK_AS_ADVANCED(ALUT_LIBRARY ALUT_INCLUDE_DIR) 85 # Set optimized and debug libraries 86 HandleLibraryTypes(ALUT) 87 88 MARK_AS_ADVANCED( 89 ALUT_LIBRARY 90 ALUT_LIBRARY_OPTIMIZED 91 ALUT_LIBRARY_DEBUG 92 ALUT_INCLUDE_DIR 93 ) -
code/branches/buildsystem2/cmake/FindCEGUI.cmake
r2577 r2579 26 26 PATH_SUFFIXES include include/CEGUI 27 27 ) 28 29 IF(WIN32) 30 FIND_LIBRARY(CEGUI_LIBRARY_ 31 NAMES CEGUIBase 32 PATHS 33 $ENV{CEGUIDIR} 34 PATH_SUFFIXES lib 35 ) 36 FIND_LIBRARY(CEGUI_LIBRARY_d 37 NAMES CEGUIBase_d 38 PATHS 39 $ENV{CEGUIDIR} 40 PATH_SUFFIXES lib 41 ) 42 IF(CEGUI_LIBRARY_) 43 IF(CEGUI_LIBRARY_d) 44 SET(CEGUI_LIBRARY optimized ${CEGUI_LIBRARY_} debug ${CEGUI_LIBRARY_d}) 45 ELSE(CEGUI_LIBRARY_d) 46 SET(CEGUI_LIBRARY ${CEGUI_LIBRARY_}) 47 ENDIF(CEGUI_LIBRARY_d) 48 ENDIF(CEGUI_LIBRARY_) 49 ELSE(WIN32) 50 FIND_LIBRARY(CEGUI_LIBRARY 51 NAMES CEGUIBase 52 PATHS 53 $ENV{CEGUIDIR} 54 /usr/local 55 /usr 56 PATH_SUFFIXES lib 57 ) 58 ENDIF(WIN32) 28 FIND_LIBRARY(CEGUI_LIBRARY_OPTIMIZED 29 NAMES CEGUIBase 30 PATHS 31 $ENV{CEGUIDIR} 32 /usr/local 33 /usr 34 PATH_SUFFIXES lib 35 ) 36 FIND_LIBRARY(CEGUI_LIBRARY_DEBUG 37 NAMES CEGUIBase_${LIBRARY_DEBUG_POSTFIX} 38 PATHS 39 $ENV{CEGUIDIR} 40 /usr/local 41 /usr 42 PATH_SUFFIXES lib 43 ) 59 44 60 45 # Look in CEGUIVersion.h for the version number … … 85 70 # ENDIF (NOT CEGUI_SCRIPT_LIBDIR) 86 71 87 INCLUDE(FindPackageHandleStandardArgs) 72 88 73 FIND_PACKAGE_HANDLE_STANDARD_ARGS(CEGUI DEFAULT_MSG 89 CEGUI_LIBRARY 74 CEGUI_LIBRARY_OPTIMIZED 90 75 CEGUI_INCLUDE_DIR 91 76 #CEGUI_SCRIPT_LIBRARIES 92 77 ) 93 78 79 # Set optimized and debug libraries 80 HandleLibraryTypes(CEGUI) 81 94 82 MARK_AS_ADVANCED( 95 83 CEGUI_LIBRARY 96 CEGUI_LIBRARY_ 97 CEGUI_LIBRARY_ d84 CEGUI_LIBRARY_OPTIMIZED 85 CEGUI_LIBRARY_DEBUG 98 86 CEGUI_INCLUDE_DIR 99 CEGUI_VERSION100 87 #CEGUI_SCRIPT_LIBRARIES 101 88 ) -
code/branches/buildsystem2/cmake/FindDirectX.cmake
r2511 r2579 1 1 IF(WIN32) 2 # - Test for DirectX2 # Find script for DirectX on Windows 3 3 # Once loaded this will define 4 4 # DirectX_FOUND - system has DirectX 5 5 # DirectX_INCLUDE_DIR - include directory for DirectX 6 # DirectX_LIB _DIR - lib directory for DirectX6 # DirectX_LIBRARY - library for DirectX 7 7 # 8 8 # Several changes and additions by Fabian 'x3n' Landau … … 12 12 PATHS 13 13 $ENV{DXSDK_DIR} 14 PATH_SUFFIXES include Include14 PATH_SUFFIXES include 15 15 ) 16 16 17 FIND_PATH(DirectX_LIB_DIR dinput8.lib 17 FIND_LIBRARY(DirectX_LIBRARY_1 dinput8 18 PATHS 19 $ENV{DXSDK_DIR} 20 PATH_SUFFIXES lib Lib lib/x86 Lib/x86 21 ) 22 FIND_LIBRARY(DirectX_LIBRARY_2 dxguid 18 23 PATHS 19 24 $ENV{DXSDK_DIR} … … 21 26 ) 22 27 23 INCLUDE(FindPackageHandleStandardArgs) 24 FIND_PACKAGE_HANDLE_STANDARD_ARGS(DirectX DEFAULT_MSG DirectX_INCLUDE_DIR DirectX_LIB_DIR) 28 FIND_PACKAGE_HANDLE_STANDARD_ARGS(DirectX DEFAULT_MSG DirectX_INCLUDE_DIR DirectX_LIBRARY_1 DirectX_LIBRARY_2) 25 29 30 IF(DIRECTX_FOUND) 31 SET(DirectX_LIBRARIES ${DirectX_LIBRARY_1} ${DirectX_LIBRARY_2} CACHE STRING "DirectX library files" FORCE) 32 ENDIF(DIRECTX_FOUND) 26 33 ENDIF(WIN32) 27 34 28 MARK_AS_ADVANCED(DirectX_INCLUDE_DIR DirectX_LIB_DIR) 35 MARK_AS_ADVANCED( 36 DirectX_INCLUDE_DIR 37 DirectX_LIBRARY_1 38 DirectX_LIBRARY_2 39 DirectX_LIBRARIES 40 ) -
code/branches/buildsystem2/cmake/FindENet.cmake
r2510 r2579 21 21 /usr 22 22 PATH_SUFFIXES include 23 ) 24 25 FIND_LIBRARY(ENet_LIBRARY 23 ) 24 FIND_LIBRARY(ENet_LIBRARY_OPTIMIZED 26 25 NAMES enet 27 26 PATHS … … 30 29 /usr 31 30 PATH_SUFFIXES lib 32 ) 31 ) 32 FIND_LIBRARY(ENet_LIBRARY_DEBUG 33 NAMES enet_${LIBRARY_DEBUG_POSTFIX} 34 PATHS 35 $ENV{ENETDIR} 36 /usr/local 37 /usr 38 PATH_SUFFIXES lib 39 ) 33 40 34 41 # handle the QUIETLY and REQUIRED arguments and set ENET_FOUND to TRUE if 35 42 # all listed variables are TRUE 36 INCLUDE(FindPackageHandleStandardArgs) 37 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ENet DEFAULT_MSG ENet_LIBRARY ENet_INCLUDE_DIR) 43 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ENet DEFAULT_MSG 44 ENet_LIBRARY_OPTIMIZED 45 ENet_INCLUDE_DIR 46 ) 38 47 39 IF (ENET_FOUND) 40 IF(WIN32) 41 SET(WINDOWS_ENET_DEPENDENCIES "ws2_32;winmm") 42 SET(ENet_LIBRARIES ${ENet_LIBRARY} ${WINDOWS_ENET_DEPENDENCIES}) 43 ELSE(WIN32) 44 SET(ENet_LIBRARIES ${ENet_LIBRARY}) 45 ENDIF(WIN32) 46 ENDIF (ENET_FOUND) 48 # Set optimized and debug libraries 49 HandleLibraryTypes(ENet ${ENet_ADDITIONAL_LIBRARIES}) 47 50 48 MARK_AS_ADVANCED(ENet_LIBRARY ENet_LIBRARIES ENet_INCLUDE_DIR) 51 MARK_AS_ADVANCED( 52 ENet_LIBRARY 53 ENet_LIBRARY_OPTIMIZED 54 ENet_LIBRARY_DEBUG 55 ENet_INCLUDE_DIR 56 ) -
code/branches/buildsystem2/cmake/FindOGRE.cmake
r2568 r2579 17 17 FIND_PATH(OGRE_INCLUDE_DIR Ogre.h 18 18 PATHS 19 $ENV{OGREDIR}20 19 $ENV{OGRE_HOME} 21 20 /usr/local … … 23 22 PATH_SUFFIXES include include/OGRE 24 23 ) 24 FIND_LIBRARY(OGRE_LIBRARY_OPTIMIZED 25 NAMES OgreMain 26 PATHS 27 $ENV{OGRE_HOME} 28 /usr/local 29 /usr 30 PATH_SUFFIXES lib 31 ) 32 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 39 ) 25 40 26 IF(WIN32)27 FIND_LIBRARY(OGRE_LIBRARY_28 NAMES OgreMain29 PATHS30 $ENV{OGREDIR}31 $ENV{OGRE_HOME}32 PATH_SUFFIXES lib33 )34 FIND_LIBRARY(OGRE_LIBRARY_d35 NAMES OgreMain_d36 PATHS37 $ENV{OGREDIR}38 $ENV{OGRE_HOME}39 PATH_SUFFIXES lib40 )41 IF(OGRE_LIBRARY_)42 IF(OGRE_LIBRARY_d)43 SET(OGRE_LIBRARY optimized ${OGRE_LIBRARY_} debug ${OGRE_LIBRARY_d})44 ELSE(OGRE_LIBRARY_d)45 SET(OGRE_LIBRARY ${OGRE_LIBRARY_})46 ENDIF(OGRE_LIBRARY_d)47 ENDIF(OGRE_LIBRARY_)48 ELSE(WIN32)49 FIND_LIBRARY(OGRE_LIBRARY50 NAMES OgreMain51 PATHS52 $ENV{OGREDIR}53 $ENV{OGRE_HOME}54 /usr/local55 /usr56 PATH_SUFFIXES lib57 )58 ENDIF(WIN32)59 60 INCLUDE(FindPackageHandleStandardArgs)61 41 FIND_PACKAGE_HANDLE_STANDARD_ARGS(OGRE DEFAULT_MSG 62 OGRE_LIBRARY 42 OGRE_LIBRARY_OPTIMIZED 63 43 OGRE_INCLUDE_DIR 64 44 ) 65 45 46 # Set optimized and debug libraries 47 HandleLibraryTypes(OGRE) 48 66 49 MARK_AS_ADVANCED( 67 50 OGRE_LIBRARY 68 OGRE_LIBRARY_ 69 OGRE_LIBRARY_ d51 OGRE_LIBRARY_OPTIMIZED 52 OGRE_LIBRARY_DEBUG 70 53 OGRE_INCLUDE_DIR 71 54 ) -
code/branches/buildsystem2/cmake/FindOggVorbis.cmake
r2510 r2579 11 11 # VORBISFILE_LIBRARY 12 12 # 13 # $OGGVORBISDIR is an environment variable used for finding ogg/vorbis. 13 # $OGGDIR and $VORBISDIR are environment variables used 14 # for finding ogg/vorbis. 14 15 # 15 16 # Several changes and additions by Fabian 'x3n' Landau … … 18 19 19 20 SET(OGG_SEARCH_PATHS 20 $ENV{OGGVORBISDIR} 21 $ENV{OGGDIR} 22 $ENV{VORBISDIR} 21 23 /usr/local 22 24 /usr … … 31 33 PATH_SUFFIXES include 32 34 ) 33 34 35 FIND_PATH(VORBIS_INCLUDE_DIR vorbis/codec.h 35 36 PATHS ${OGG_SEARCH_PATHS} 36 37 PATH_SUFFIXES include 37 38 ) 38 39 FIND_LIBRARY(OGG_LIBRARY NAMES ogg 39 FIND_LIBRARY(OGG_LIBRARY_OPTIMIZED NAMES ogg 40 40 PATHS ${OGG_SEARCH_PATHS} 41 41 PATH_SUFFIXES lib 42 42 ) 43 44 FIND_LIBRARY(VORBIS_LIBRARY NAMES vorbis 43 FIND_LIBRARY(OGG_LIBRARY_DEBUG NAMES ogg_${LIBRARY_DEBUG_POSTFIX} 45 44 PATHS ${OGG_SEARCH_PATHS} 46 45 PATH_SUFFIXES lib 47 46 ) 48 49 #FIND_LIBRARY(VORBISENC_LIBRARY NAMES vorbisenc 50 # PATHS ${OGG_SEARCH_PATHS} 51 # PATH_SUFFIXES lib 52 #) 53 54 FIND_LIBRARY(VORBISFILE_LIBRARY NAMES vorbisfile 47 FIND_LIBRARY(VORBIS_LIBRARY_OPTIMIZED NAMES vorbis 48 PATHS ${OGG_SEARCH_PATHS} 49 PATH_SUFFIXES lib 50 ) 51 FIND_LIBRARY(VORBIS_LIBRARY_DEBUG NAMES vorbis_${LIBRARY_DEBUG_POSTFIX} 52 PATHS ${OGG_SEARCH_PATHS} 53 PATH_SUFFIXES lib 54 ) 55 FIND_LIBRARY(VORBISFILE_LIBRARY_OPTIMIZED NAMES vorbisfile 56 PATHS ${OGG_SEARCH_PATHS} 57 PATH_SUFFIXES lib 58 ) 59 FIND_LIBRARY(VORBISFILE_LIBRARY_DEBUG NAMES vorbisfile_${LIBRARY_DEBUG_POSTFIX} 55 60 PATHS ${OGG_SEARCH_PATHS} 56 61 PATH_SUFFIXES lib … … 59 64 # handle the QUIETLY and REQUIRED arguments and set *_FOUND to TRUE if 60 65 # all listed variables are TRUE 61 INCLUDE(FindPackageHandleStandardArgs) 62 FIND_PACKAGE_HANDLE_STANDARD_ARGS(OGG DEFAULT_MSG OGG_LIBRARY OGG_INCLUDE_DIR) 66 FIND_PACKAGE_HANDLE_STANDARD_ARGS(OGG DEFAULT_MSG 67 OGG_LIBRARY_OPTIMIZED 68 OGG_INCLUDE_DIR 69 ) 63 70 FIND_PACKAGE_HANDLE_STANDARD_ARGS(VORBIS DEFAULT_MSG 64 VORBIS_LIBRARY 65 VORBISFILE_LIBRARY 66 #VORBISENC_LIBRARY 71 VORBIS_LIBRARY_OPTIMIZED 72 VORBISFILE_LIBRARY_OPTIMIZED 67 73 VORBIS_INCLUDE_DIR 68 74 ) 69 75 76 # Set optimized and debug libraries 77 HandleLibraryTypes(OGG) 78 HandleLibraryTypes(VORBIS) 79 HandleLibraryTypes(VORBISFILE) 80 70 81 MARK_AS_ADVANCED( 71 82 OGG_LIBRARY 83 OGG_LIBRARY_OPTIMIZED 84 OGG_LIBRARY_DEBUG 72 85 OGG_INCLUDE_DIR 73 86 VORBIS_LIBRARY 87 VORBIS_LIBRARY_OPTIMIZED 88 VORBIS_LIBRARY_DEBUG 74 89 VORBISFILE_LIBRARY 75 #VORBISENC_LIBRARY 90 VORBISFILE_LIBRARY_OPTIMIZED 91 VORBISFILE_LIBRARY_DEBUG 76 92 VORBIS_INCLUDE_DIR 77 93 ) -
code/branches/buildsystem2/src/audio/CMakeLists.txt
r2510 r2579 21 21 ) 22 22 23 INSTALL(TARGETS audio LIBRARY DESTINATION lib) 23 IF (NOT WIN32) 24 INSTALL(TARGETS audio LIBRARY DESTINATION lib) 25 ENDIF (NOT WIN32) -
code/branches/buildsystem2/src/ceguilua-0.5.0/ceguilua/CMakeLists.txt
r2510 r2579 14 14 ) 15 15 16 INSTALL(TARGETS ceguilua_orxonox LIBRARY DESTINATION lib) 16 IF (NOT WIN32) 17 INSTALL(TARGETS ceguilua_orxonox LIBRARY DESTINATION lib) 18 ENDIF (NOT WIN32) -
code/branches/buildsystem2/src/ceguilua-0.6.1/ceguilua/CMakeLists.txt
r2510 r2579 14 14 ) 15 15 16 INSTALL(TARGETS ceguilua_orxonox LIBRARY DESTINATION lib) 16 IF (NOT WIN32) 17 INSTALL(TARGETS ceguilua_orxonox LIBRARY DESTINATION lib) 18 ENDIF (NOT WIN32) -
code/branches/buildsystem2/src/core/CMakeLists.txt
r2519 r2579 63 63 ) 64 64 65 INSTALL(TARGETS core LIBRARY DESTINATION lib) 65 IF (NOT WIN32) 66 INSTALL(TARGETS core LIBRARY DESTINATION lib) 67 ENDIF (NOT WIN32) -
code/branches/buildsystem2/src/cpptcl/CMakeLists.txt
r2510 r2579 5 5 ) 6 6 7 INSTALL(TARGETS cpptcl_orxonox LIBRARY DESTINATION lib) 7 IF (NOT WIN32) 8 INSTALL(TARGETS cpptcl_orxonox LIBRARY DESTINATION lib) 9 ENDIF (NOT WIN32) -
code/branches/buildsystem2/src/network/CMakeLists.txt
r2518 r2579 31 31 ) 32 32 33 INSTALL(TARGETS network LIBRARY DESTINATION lib) 33 IF (NOT WIN32) 34 INSTALL(TARGETS network LIBRARY DESTINATION lib) 35 ENDIF (NOT WIN32) 34 36 35 37 # build those parts only on request. … … 43 45 ${OGRE_LIBRARY} 44 46 network 45 ${ENet_LIBRAR IES}47 ${ENet_LIBRARY} 46 48 ${ZLIB_LIBRARY} 47 49 ) -
code/branches/buildsystem2/src/ogreceguirenderer/CMakeLists.txt
r2569 r2579 6 6 7 7 ADD_LIBRARY(ogreceguirenderer_orxonox SHARED ${SRC_FILES}) 8 INSTALL(TARGETS ogreceguirenderer_orxonox LIBRARY DESTINATION lib) 8 9 IF (NOT WIN32) 10 INSTALL(TARGETS ogreceguirenderer_orxonox LIBRARY DESTINATION lib) 11 ENDIF (NOT WIN32) -
code/branches/buildsystem2/src/ois/CMakeLists.txt
r2510 r2579 1 INCLUDE_DIRECTORIES(.) 2 1 3 SET( OIS_SRC_FILES 2 4 OISEffect.cpp … … 39 41 40 42 IF(WIN32) 41 LINK_DIRECTORIES(${DirectX_LIB_DIR}) 42 TARGET_LINK_LIBRARIES( ois_orxonox 43 dxguid 44 dinput8 45 ) 43 TARGET_LINK_LIBRARIES( ois_orxonox ${DirectX_LIBRARIES} ) 46 44 ENDIF(WIN32) 47 45 48 INSTALL(TARGETS ois_orxonox LIBRARY DESTINATION lib) -
code/branches/buildsystem2/src/orxonox/CMakeLists.txt
r2569 r2579 49 49 ) 50 50 51 INSTALL(TARGETS orxonox RUNTIME DESTINATION bin) 51 IF (NOT WIN32) 52 INSTALL(TARGETS orxonox RUNTIME DESTINATION bin) 53 ENDIF (NOT WIN32) -
code/branches/buildsystem2/src/tinyxml/CMakeLists.txt
r2510 r2579 8 8 9 9 ADD_LIBRARY(tinyxml_orxonox SHARED ${TINYXML_SRC_FILES}) 10 INSTALL(TARGETS tinyxml_orxonox LIBRARY DESTINATION lib) 10 11 IF (NOT WIN32) 12 INSTALL(TARGETS tinyxml_orxonox LIBRARY DESTINATION lib) 13 ENDIF (NOT WIN32) -
code/branches/buildsystem2/src/tolua/CMakeLists.txt
r2572 r2579 7 7 ) 8 8 9 #INSTALL(TARGETS tolualib_orxonox LIBRARY DESTINATION lib) 9 IF (NOT WIN32) 10 # INSTALL(TARGETS tolualib_orxonox LIBRARY DESTINATION lib) 11 ENDIF (NOT WIN32) 10 12 11 13 SET(TOLUAGEN_SRC_FILES -
code/branches/buildsystem2/src/util/CMakeLists.txt
r2512 r2579 15 15 ADD_LIBRARY(util SHARED ${UTIL_SRC_FILES}) 16 16 TARGET_LINK_LIBRARIES(util ${OGRE_LIBRARY}) 17 INSTALL(TARGETS util LIBRARY DESTINATION lib) 17 18 IF (NOT WIN32) 19 INSTALL(TARGETS util LIBRARY DESTINATION lib) 20 ENDIF (NOT WIN32)
Note: See TracChangeset
for help on using the changeset viewer.