Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 29, 2012, 10:30:42 PM (11 years ago)
Author:
landauf
Message:

moved settings for executables in visual studio to TargetUtilities to make them work for orxonox-main and test-executables
define test-executables with ORXONOX_ADD_EXECUTABLE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/testing/src/CMakeLists.txt

    r9473 r9474  
    7878
    7979
    80 # When using Visual Studio we want to use the output directory as working
    81 # directory and we also want to specify where the external dlls
    82 # (lua, ogre, etc.) are. The problem hereby is that these information cannot
    83 # be specified in CMake because they are not stored in the actual project file.
    84 # This workaround will create a configured *.vcproj.user file that holds the
    85 # right values. When starting the solution for the first time,
    86 # these get written to the *vcproj.yourPCname.yourname.user
    8780IF(MSVC)
    8881  IF(CMAKE_CL_64)
     
    9083  ELSE()
    9184    SET(MSVC_PLATFORM "Win32")
    92   ENDIF()
    93   IF(MSVC10)
    94     CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/orxonox-main.vcxproj.user.in" "${CMAKE_CURRENT_BINARY_DIR}/orxonox-main.vcxproj.user")
    95   ELSE()
    96     STRING(REGEX REPLACE "^Visual Studio ([0-9][0-9]?).*$" "\\1"
    97            VISUAL_STUDIO_VERSION_SIMPLE "${CMAKE_GENERATOR}")
    98     CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/orxonox-main.vcproj.user.in" "${CMAKE_CURRENT_BINARY_DIR}/orxonox-main.vcproj.user")
    9985  ENDIF()
    10086ENDIF(MSVC)
Note: See TracChangeset for help on using the changeset viewer.