Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5744


Ignore:
Timestamp:
Sep 12, 2009, 5:39:07 PM (15 years ago)
Author:
rgrieder
Message:

Visual studio debugger working again (had to move the project modifier file).

Location:
code/trunk/src
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • code/trunk/src/CMakeLists.txt

    r5738 r5744  
    120120GET_FILENAME_COMPONENT(_exec_name ${_exec_loc} NAME)
    121121SET(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
     131IF(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")
     140ENDIF(MSVC)
  • code/trunk/src/orxonox/CMakeLists.txt

    r5738 r5744  
    7474  SOURCE_FILES ${ORXONOX_SRC_FILES}
    7575)
    76 
    77 
    78 # When using Visual Studio we want to use the output directory as working
    79 # directory and we also want to specify where the external dlls
    80 # (lua, ogre, etc.) are. The problem hereby is that these information cannot
    81 # 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 the
    83 # right values. When starting the solution for the first time,
    84 # these get written to the *vcproj.yourPCname.yourname.user
    85 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.