Hey,

I want to use cmakes source_group with regex. As long as the command is in the 
same file as my target everything works fine, but I want to set the 
source_group in my main CMakeLists.txt file, because I have many 
sub_directories. Is it possible to set a cmake config to pass it down to my 
subdirectories?

example

source_group("Source Files" REGULAR_EXPRESSION ".*\\.cpp")
source_group("Header Files" REGULAR_EXPRESSION ".*\\.h")
source_group("Ui Files" REGULAR_EXPRESSION ".*\\.ui")
source_group("Resource Files" REGULAR_EXPRESSION ".*\\.qrc")
add_subdirectory(src)

Greetings
Tonka

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

Reply via email to