I have already looked around (StackOverflow and more) and I'm trying to use cmake to generate Visual Studio filters. I have the following folders:
src/math
src/import
src/ui
I would like to generate the filters like above.
math
: contains all the cpp & h files in src/math
import
: contains all the cpp & h files in src/import
ui
: contains all the cpp & h files in src/ui
I have tried several solutions, but none seems to work!!!
Here is the last version of the code in CMakeList.txt
:
set(VD_SRC "${VisualDesigner_SOURCE_DIR}/src/visualdesigner")
file(GLOB_RECURSE SRC_UI
"${VD_SRC}/ui/*.cpp", "${VD_SRC}/ui/*.h")
file(GLOB_RECURSE SRC_IMPORT
"${VD_SRC}/import/*.cpp",
"${VD_SRC}/import/*.h")
source_group("ui" FILES ${SRC_UI})
source_group("import" FILES ${SRC_IMPORT})
Any help is welcomed!