Skip to content
Snippets Groups Projects
Commit 5b2ce1a3 authored by Soeren Peters's avatar Soeren Peters
Browse files

Sourcegroup fix: Set SourceGroup only to the current file.

parent d2b25827
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ macro(includeFiles targetName file_paths)
collectFilesFrom(${file})
if (package_dir)
setSourceGroupForFilesIn(${package_dir} ${targetName})
setSourceGroupForFilesIn(${file} ${package_dir} ${targetName})
endif()
endforeach()
......@@ -72,14 +72,15 @@ endmacro()
macro(setSourceGroupForFilesIn package_dir targetName)
macro(setSourceGroupForFilesIn file package_dir targetName)
#input: target_name PACKAGE_SRCS
buildSourceGroup(${targetName} ${package_dir})
if(isAllTestSuite)
source_group(${targetName}\\${SOURCE_GROUP} FILES ${MY_SRCS})
source_group(${targetName}\\${SOURCE_GROUP} FILES ${file})
else()
source_group(${SOURCE_GROUP} FILES ${MY_SRCS})
#message("SOURCE_GROUP: " ${SOURCE_GROUP} " ,src: " ${file})
source_group(${SOURCE_GROUP} FILES ${file})
endif()
#output: -
endmacro(setSourceGroupForFilesIn)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment