Changeset 2590 for code/branches/buildsystem2/src
- Timestamp:
- Jan 12, 2009, 5:06:56 PM (16 years ago)
- Location:
- code/branches/buildsystem2/src/orxonox
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/src/orxonox/CMakeLists.txt
r2588 r2590 25 25 26 26 ADD_EXECUTABLE(orxonox ${ORXONOX_SRC_FILES}) 27 GET_TARGET_PROPERTY(_exec_loc orxonox LOCATION) 28 GET_FILENAME_COMPONENT(_exec_name ${_exec_loc} NAME) 29 SET(ORXONOX_EXECUTABLE_NAME ${_exec_name} CACHE STRING "") 30 MARK_AS_ADVANCED(ORXONOX_EXECUTABLE_NAME) 27 31 28 32 IF(NETWORKTRAFFIC_TESTING_ENABLED) … … 52 56 ) 53 57 58 # When using Visual Studio we want to use the output directory as working 59 # directory and we also want to specify where the external dlls 60 # (lua, ogre, etc.) are. The problem hereby is that these information cannot 61 # be specified in CMake because they are not stored in the actual project file. 62 # This workaround will create a configured *.vcproj.user file that holds the 63 # right values. When starting the solution for the first time, 64 # these get written to the *vcproj.yourPCname.yourname.user 65 IF(MSVC) 66 IF(CMAKE_CL_64) 67 SET(MSVC_PLATFORM "x64") 68 ELSE(CMAKE_CL_64) 69 SET(MSVC_PLATFORM "Win32") 70 ENDIF(CMAKE_CL_64) 71 CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/orxonox.vcproj.user" "${CMAKE_CURRENT_BINARY_DIR}/orxonox.vcproj.user") 72 ENDIF(MSVC) 73 54 74 IF (NOT WIN32) 55 75 INSTALL(TARGETS orxonox RUNTIME DESTINATION bin)
Note: See TracChangeset
for help on using the changeset viewer.