cmake source_group has no effect

1

I'm trying to organize the project generated in visual studio, so I'm using the source_group function to add the directories I want, but it does not seem to have any effect:

set(CPP_FILES_REGEX "\b(\w|\d)+\b\.(hpp|cpp|c|h)")

source_group("my_folder" REGULAR_EXPRESSION     "${sourcers_dir}\/${CPP_FILES_REGEX}")

add_executable(my_executable ${sourcers_dir}/main.cpp ${sourcers_dir}/teste.hpp)

I tested the regular expression here: RegExr and it works, the generated project continues with the default folders: Header and Sources.

    
asked by anonymous 02.12.2016 / 01:33

0 answers