<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; word-wrap: break-word; clear: both;"><span style="background-color: rgba(255, 255, 255, 0);">Hey,</span></p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; word-wrap: break-word; clear: both;"><span style="background-color: rgba(255, 255, 255, 0);">I want to use cmakes <code style="margin: 0px; padding: 1px 5px; border: 0px;">source_group</code> with regex. As long as the command is in the same file as my target everything works fine, but I want to set the <code style="margin: 0px; padding: 1px 5px; border: 0px;">source_group</code> 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?</span></p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; word-wrap: break-word; clear: both;"><span style="background-color: rgba(255, 255, 255, 0);">example</span></p><pre style="margin-top: 0px; margin-bottom: 10px; padding: 0px; border: 0px; overflow: scroll; -webkit-overflow-scrolling: touch;"><code style="margin: 0px; padding: 0px; border: 0px; white-space: normal; background-color: rgba(255, 255, 255, 0);"><font face="UICTFontTextStyleTallBody">source_group("Source Files" REGULAR_EXPRESSION ".*\\.cpp")</font></code></pre><pre style="margin-top: 0px; margin-bottom: 10px; padding: 0px; border: 0px; overflow: scroll; -webkit-overflow-scrolling: touch;"><code style="margin: 0px; padding: 0px; border: 0px; white-space: normal; background-color: rgba(255, 255, 255, 0);"><font face="UICTFontTextStyleTallBody">source_group("Header Files" REGULAR_EXPRESSION ".*\\.h")</font></code></pre><pre style="margin-top: 0px; margin-bottom: 10px; padding: 0px; border: 0px; overflow: scroll; -webkit-overflow-scrolling: touch;"><code style="margin: 0px; padding: 0px; border: 0px; white-space: normal; background-color: rgba(255, 255, 255, 0);"><font face="UICTFontTextStyleTallBody">source_group("Ui Files" REGULAR_EXPRESSION ".*\\.ui")</font></code></pre><pre style="margin-top: 0px; margin-bottom: 10px; padding: 0px; border: 0px; overflow: scroll; -webkit-overflow-scrolling: touch;"><code style="margin: 0px; padding: 0px; border: 0px; white-space: normal; background-color: rgba(255, 255, 255, 0);"><font face="UICTFontTextStyleTallBody">source_group("Resource Files" REGULAR_EXPRESSION ".*\\.qrc")</font></code></pre><pre style="margin-top: 0px; margin-bottom: 10px; padding: 0px; border: 0px; overflow: scroll; -webkit-overflow-scrolling: touch;"><code style="margin: 0px; padding: 0px; border: 0px; white-space: normal; background-color: rgba(255, 255, 255, 0);"><font face="UICTFontTextStyleTallBody">add_subdirectory(src)
</font></code></pre><pre style="margin-top: 0px; margin-bottom: 10px; padding: 0px; border: 0px; overflow: scroll; -webkit-overflow-scrolling: touch;"><code style="margin: 0px; padding: 0px; border: 0px; white-space: normal; background-color: rgba(255, 255, 255, 0);"><font face="UICTFontTextStyleTallBody"><br></font></code></pre><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; word-wrap: break-word; clear: both;"><span style="background-color: rgba(255, 255, 255, 0);">Greetings<br>Tonka</span></p><div></div></body></html>