add basic c++ project setup
This commit is contained in:
12
cmake/create_source_groups.cmake
Normal file
12
cmake/create_source_groups.cmake
Normal file
@@ -0,0 +1,12 @@
|
||||
macro(create_source_groups)
|
||||
foreach(FILE ${ARGN})
|
||||
get_filename_component(GROUP "${FILE}" PATH)
|
||||
# changes /'s to \\'s
|
||||
string(REPLACE "/" "\\" GROUP "${GROUP}")
|
||||
|
||||
string(LENGTH "${GROUP}" GROUP_NAME_LENGTH)
|
||||
if (${GROUP_NAME_LENGTH} GREATER 0)
|
||||
source_group("${GROUP}" FILES "${FILE}")
|
||||
endif()
|
||||
endforeach()
|
||||
endmacro()
|
||||
Reference in New Issue
Block a user