Changeset 11698 for code/trunk
- Timestamp:
- Jan 3, 2018, 11:19:53 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/CMakeLists.txt
r11697 r11698 64 64 ENDIF() 65 65 66 SET(ORXONOX_EXECUTABLE_NAME "orxonox" CACHE INTERNAL "") 67 66 68 ORXONOX_ADD_EXECUTABLE(orxonox-main 67 69 # When defined as WIN32 this removes the console window on Windows … … 71 73 SOURCE_FILES 72 74 ${ORXONOX_MAIN_FILES} 73 OUTPUT_NAME orxonox 75 OUTPUT_NAME 76 ${ORXONOX_EXECUTABLE_NAME} 74 77 ) 75 78 # Main executable should depend on all modules (but not on plugins) 76 79 ADD_DEPENDENCIES(orxonox-main ${ORXONOX_MODULES}) 77 78 # Get name to configure the run scripts79 IF (POLICY CMP0026)80 CMAKE_POLICY(PUSH)81 CMAKE_POLICY(SET CMP0026 OLD) # we only use the file's name, not its actual location, so the old policy is fine82 ENDIF()83 GET_TARGET_PROPERTY(_exec_loc orxonox-main LOCATION)84 GET_FILENAME_COMPONENT(_exec_name ${_exec_loc} NAME)85 SET(ORXONOX_EXECUTABLE_NAME ${_exec_name} CACHE INTERNAL "")86 IF (POLICY CMP0026)87 CMAKE_POLICY(POP) # set policy back to original settings88 ENDIF()89 80 90 81
Note: See TracChangeset
for help on using the changeset viewer.