On VS don't use a Source folder, which is just one
unnecessary hierarchy. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14451 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
6abb994a61
commit
af70fc938d
@ -3,13 +3,25 @@
|
|||||||
# - SRCS list of source files
|
# - SRCS list of source files
|
||||||
# - HDRS list of header files
|
# - HDRS list of header files
|
||||||
function(source_group_hierarchy SRCS HDRS)
|
function(source_group_hierarchy SRCS HDRS)
|
||||||
foreach(source_file ${${SRCS}})
|
if(MSVC)
|
||||||
source_group_file(${source_file} "Source Files\\")
|
# This removes the 'Source Files' folder, which is
|
||||||
endforeach()
|
# not really necessary. Also, put header and source
|
||||||
|
# files into the same folder
|
||||||
|
foreach(source_file ${${SRCS}})
|
||||||
|
source_group_file(${source_file} "")
|
||||||
|
endforeach()
|
||||||
|
foreach(header_file ${${HDRS}})
|
||||||
|
source_group_file(${header_file} "")
|
||||||
|
endforeach()
|
||||||
|
else()
|
||||||
|
foreach(source_file ${${SRCS}})
|
||||||
|
source_group_file(${source_file} "Source Files\\")
|
||||||
|
endforeach()
|
||||||
|
foreach(header_file ${${HDRS}})
|
||||||
|
source_group_file(${header_file} "Source Files\\")
|
||||||
|
endforeach()
|
||||||
|
endif()
|
||||||
|
|
||||||
foreach(header_file ${${HDRS}})
|
|
||||||
source_group_file(${header_file} "Source Files\\")
|
|
||||||
endforeach()
|
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
# Determine source_group depending on file path
|
# Determine source_group depending on file path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user