MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0004637 | CMake | CMake | public | 2007-03-20 06:23 | 2007-08-24 11:03 |
| Reporter | Christopher Lux | ||||
| Assigned To | Alex Neundorf | ||||
| Priority | urgent | Severity | major | Reproducibility | always |
| Status | closed | Resolution | duplicate | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0004637: problem with SOURCE_GROUPS and non code files | ||||
| Description | the example below demonstrates the bug. i get all files in subdirectories and assign them source groups for use in visual studio. with code files this works great but with non directly code related files this is broken. for example here the .glsl files. i assign the two groups to two subdirectories but in the final project all files show up in the first group only and the second one is not created. thanks -chris FILE(GLOB SHADER_FILES_VOLUME_RENDERER ${SRC_DIR}/volume_renderer/shader/*.glsl) FILE(GLOB SHADER_FILES ${SRC_DIR}/shader/*.glsl) # define source groups for visual studio project files SET(SOURCE_GROUP_DELIMITER "/") SOURCE_GROUP(source_files FILES ${SOURCE_FILES} ${HEADER_FILES} ${INLINE_FILES}) SOURCE_GROUP(source_files/shader FILES ${SHADER_FILES}) SOURCE_GROUP(source_files/volume_renderer/shader FILES ${SHADER_FILES_VOLUME_RENDERER}) # combine source file lists SET(SOURCE_FILES ${SOURCE_FILES} ... ) SET(HEADER_FILES ${HEADER_FILES} ... ) SET(INLINE_FILES ${INLINE_FILES} ... ) SET(SHADER_FILES ${SHADER_FILES} ${SHADER_FILES_VOLUME_RENDERER} ) # include header and inline files in source files for visual studio projects IF (WIN32) IF (MSVC) SET (SOURCE_FILES ${SOURCE_FILES} ${HEADER_FILES} ${INLINE_FILES} ${SHADER_FILES}) ENDIF (MSVC) ENDIF (WIN32) | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/1004/CMake_recursive_source_groups.patch | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2007-08-24 11:03 | Alex Neundorf | Note Added: 0008650 | |||
| 2007-08-24 11:03 | Alex Neundorf | Status | assigned => closed | ||
| 2007-08-24 11:03 | Alex Neundorf | Resolution | open => duplicate | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||