Changeset 5744 for code/trunk/src/CMakeLists.txt
- Timestamp:
- Sep 12, 2009, 5:39:07 PM (15 years ago)
- File:
-
- 1 edited
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)
Note: See TracChangeset
for help on using the changeset viewer.