- Timestamp:
- Sep 11, 2010, 8:20:30 PM (14 years ago)
- Location:
- code/trunk/cmake/tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/cmake/tools/GenerateToluaBindings.cmake
r7163 r7415 47 47 PARENT_SCOPE 48 48 ) 49 SOURCE_GROUP("Tolua" FILES ${_tolua_cxxfile} ${_tolua_hfile}) 49 50 50 # Disable annoying GCC warnings 51 51 IF(CMAKE_COMPILER_IS_GNU) 52 52 SET_SOURCE_FILES_PROPERTIES(${_tolua_cxxfile} PROPERTIES COMPILE_FLAGS "-w") 53 53 ENDIF() 54 54 55 # Tolua binding speedup if required 55 56 IF(ORXONOX_RELEASE) -
code/trunk/cmake/tools/SourceFileUtilities.cmake
r7173 r7415 118 118 SOURCE_GROUP("Source\\${_group_path}" FILES ${_file}) 119 119 ELSE() 120 # Has to be a compilation121 SOURCE_GROUP(" Compilations" FILES ${_file})120 # File is being generated in the binary directory 121 SOURCE_GROUP("Generated" FILES ${_file}) 122 122 ENDIF() 123 123 ENDFOREACH(_file) -
code/trunk/cmake/tools/TargetUtilities.cmake
r7401 r7415 84 84 NO_DLL_INTERFACE NO_SOURCE_GROUPS PCH_NO_DEFAULT 85 85 NO_INSTALL NO_VERSION ${_additional_switches}) 86 SET(_list_names LINK_LIBRARIES VERSION SOURCE_FILES DEFINE_SYMBOL 87 TOLUA_FILES PCH_FILE PCH_EXCLUDE OUTPUT_NAME) 86 SET(_list_names LINK_LIBRARIES VERSION SOURCE_FILES 87 DEFINE_SYMBOL TOLUA_FILES PCH_FILE 88 PCH_EXCLUDE OUTPUT_NAME) 89 88 90 PARSE_MACRO_ARGUMENTS("${_switches}" "${_list_names}" ${ARGN}) 89 91 … … 105 107 ENDIF() 106 108 109 # Combine source and header files 110 SET(_${_target_name}_files 111 ${_${_target_name}_header_files} 112 ${_${_target_name}_source_files} 113 ) 107 114 # Remove potential duplicates 108 SET(_${_target_name}_files ${_${_target_name}_header_files} ${_${_target_name}_source_files})109 115 LIST(REMOVE_DUPLICATES _${_target_name}_files) 110 111 # Generate the source groups112 IF(NOT _arg_NO_SOURCE_GROUPS)113 GENERATE_SOURCE_GROUPS(${_${_target_name}_files})114 115 IF(NOT _arg_ORXONOX_EXTERNAL)116 # Move the prereqs.h file to the config section117 IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_target_name_capitalised}Prereqs.h)118 SOURCE_GROUP("Config" FILES ${_target_name_capitalised}Prereqs.h)119 ENDIF()120 # Add the config files in a special source group121 LIST(APPEND _${_target_name}_files ${ORXONOX_CONFIG_FILES})122 SOURCE_GROUP("Config" FILES ${ORXONOX_CONFIG_FILES})123 ENDIF()124 ENDIF(NOT _arg_NO_SOURCE_GROUPS)125 116 126 117 # TOLUA_FILES … … 145 136 ENDIF() 146 137 ENDIF() 138 139 # Generate the source groups 140 IF(MSVC AND NOT _arg_NO_SOURCE_GROUPS) 141 GENERATE_SOURCE_GROUPS(${_${_target_name}_files}) 142 143 IF(NOT _arg_ORXONOX_EXTERNAL) 144 # Move the prereqs.h file to the config section 145 IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_target_name_capitalised}Prereqs.h) 146 SOURCE_GROUP("Config" FILES ${_target_name_capitalised}Prereqs.h) 147 ENDIF() 148 # Add config files to the config section 149 LIST(APPEND _${_target_name}_files ${ORXONOX_CONFIG_FILES}) 150 SOURCE_GROUP("Config" FILES ${ORXONOX_CONFIG_FILES}) 151 ENDIF() 152 ENDIF(NOT _arg_NO_SOURCE_GROUPS) 147 153 148 154 # Set link mode (SHARED/STATIC)
Note: See TracChangeset
for help on using the changeset viewer.