Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10267 for code/trunk/cmake


Ignore:
Timestamp:
Feb 12, 2015, 6:05:25 PM (10 years ago)
Author:
muemart
Message:

Add program icon for Windows builds (MSVC only for now)

Location:
code/trunk/cmake/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/cmake/tools/SourceFileUtilities.cmake

    r8729 r10267  
    8181      STRING(REPLACE "/" "\\\\" _group_path "${_relative_path}")
    8282      SOURCE_GROUP("Source\\${_group_path}" FILES ${_file})
     83    ELSEIF(_relative_path MATCHES ".*\\.rc") #Resource files
     84      SOURCE_GROUP("Resource Files" FILES ${_file})
    8385    ELSE()
    8486      # File is being generated in the binary directory
  • code/trunk/cmake/tools/TargetUtilities.cmake

    r10252 r10267  
    287287  # Don't compile header files
    288288  FOREACH(_file ${_${_target_name}_files})
    289     IF(NOT _file MATCHES "\\.(c|cc|cpp|cxx|mm)$")
     289    IF(NOT _file MATCHES "\\.(c|cc|cpp|cxx|mm|rc)$")
    290290      SET_SOURCE_FILES_PROPERTIES(${_file} PROPERTIES HEADER_FILE_ONLY TRUE)
    291291    ENDIF()
Note: See TracChangeset for help on using the changeset viewer.