Changeset 5901 for code/trunk/cmake
- Timestamp:
- Oct 7, 2009, 1:11:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/cmake/TargetUtilities.cmake
r5900 r5901 108 108 # Add the config files in a special source group 109 109 LIST(APPEND _${_target_name}_files ${ORXONOX_CONFIG_FILES}) 110 FOREACH(_file ${ORXONOX_CONFIG_FILES})111 SET_SOURCE_FILES_PROPERTIES(${_file} PROPERTIES HEADER_FILE_ONLY TRUE)112 ENDFOREACH(_file)113 110 SOURCE_GROUP("Config" FILES ${ORXONOX_CONFIG_FILES}) 114 111 ENDIF() … … 159 156 SET(_arg_STATIC) 160 157 ENDIF() 158 159 # Don't compile header files 160 FOREACH(_file ${_${_target_name}_files}) 161 IF(NOT _file MATCHES "\\.(c|cc|cpp)") 162 SET_SOURCE_FILES_PROPERTIES(${_file} PROPERTIES HEADER_FILE_ONLY TRUE) 163 ENDIF() 164 ENDFOREACH(_file) 161 165 162 166 # Add the library/executable
Note: See TracChangeset
for help on using the changeset viewer.