Changeset 5744 for code/trunk/src
- Timestamp:
- Sep 12, 2009, 5:39:07 PM (15 years ago)
- Location:
- code/trunk/src
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/CMakeLists.txt
r5738 r5744 120 120 GET_FILENAME_COMPONENT(_exec_name ${_exec_loc} NAME) 121 121 SET(ORXONOX_EXECUTABLE_NAME ${_exec_name} CACHE INTERNAL "") 122 123 124 # When using Visual Studio we want to use the output directory as working 125 # directory and we also want to specify where the external dlls 126 # (lua, ogre, etc.) are. The problem hereby is that these information cannot 127 # be specified in CMake because they are not stored in the actual project file. 128 # This workaround will create a configured *.vcproj.user file that holds the 129 # right values. When starting the solution for the first time, 130 # these get written to the *vcproj.yourPCname.yourname.user 131 IF(MSVC) 132 IF(CMAKE_CL_64) 133 SET(MSVC_PLATFORM "x64") 134 ELSE() 135 SET(MSVC_PLATFORM "Win32") 136 ENDIF() 137 STRING(REGEX REPLACE "^Visual Studio ([0-9][0-9]?) .*$" "\\1" 138 VISUAL_STUDIO_VERSION_SIMPLE "${CMAKE_GENERATOR}") 139 CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/orxonox-main.vcproj.user.in" "${CMAKE_CURRENT_BINARY_DIR}/orxonox-main.vcproj.user") 140 ENDIF(MSVC) -
code/trunk/src/orxonox/CMakeLists.txt
r5738 r5744 74 74 SOURCE_FILES ${ORXONOX_SRC_FILES} 75 75 ) 76 77 78 # When using Visual Studio we want to use the output directory as working79 # directory and we also want to specify where the external dlls80 # (lua, ogre, etc.) are. The problem hereby is that these information cannot81 # be specified in CMake because they are not stored in the actual project file.82 # This workaround will create a configured *.vcproj.user file that holds the83 # right values. When starting the solution for the first time,84 # these get written to the *vcproj.yourPCname.yourname.user85 IF(MSVC)86 IF(CMAKE_CL_64)87 SET(MSVC_PLATFORM "x64")88 ELSE()89 SET(MSVC_PLATFORM "Win32")90 ENDIF()91 STRING(REGEX REPLACE "^Visual Studio ([0-9][0-9]?) .*$" "\\1"92 VISUAL_STUDIO_VERSION_SIMPLE "${CMAKE_GENERATOR}")93 CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/orxonox-main.vcproj.user.in" "${CMAKE_CURRENT_BINARY_DIR}/orxonox-main.vcproj.user")94 ENDIF(MSVC)
Note: See TracChangeset
for help on using the changeset viewer.