Changeset 5744 for code/trunk/src/orxonox
- Timestamp:
- Sep 12, 2009, 5:39:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.