<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hej Joël,</div><div class=""><br class=""></div><div class="">The command you’re looking for is ‘source_group’, see <a href="https://cmake.org/cmake/help/v3.0/command/source_group.html" class="">https://cmake.org/cmake/help/v3.0/command/source_group.html</a></div><div class=""><br class=""></div><div class="">Sincerely,</div><div class="">Jakob</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On 30 Dec 2015, at 20:52, Klaim - Joël Lamotte <<a href="mailto:mjklaim@gmail.com" class="">mjklaim@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">The following CMake script:</div><div class=""><br class=""></div><div class="">    cmake_minimum_required(VERSION 3.4)</div><div class="">    </div><div class="">    add_library( mylib INTERFACE )</div><div class="">    set_property( TARGET mylib PROPERTY FOLDER /some/dir )</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Will trigger this error on configuration:</div><div class=""><br class=""></div><div class="">    CMake Error at CMakeLists.txt:4 (set_property):</div><div class="">      INTERFACE_LIBRARY targets may only have whitelisted properties.  The</div><div class="">      property "FOLDER" is not allowed.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">This prevent any interface library to be organized in Visual Studio virtual folders.</div><div class="">Unfortunately it also mean that header-only targets can't be organized.</div><div class=""><br class=""></div><div class="">I have no idea how this should be solved. Should the property just be white-listed?</div><div class="">Or should a better have a another specific library mode for header-only targets?<br class=""></div><div class=""><br class=""></div><div class="">Is there any workaround?</div><div class=""><br class=""></div><div class="">Joël Lamotte</div><div class=""><br class=""></div></div>
-- <br class=""><br class="">Powered by <a href="http://www.kitware.com" class="">www.kitware.com</a><br class=""><br class="">Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" class="">http://www.cmake.org/Wiki/CMake_FAQ</a><br class=""><br class="">Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br class=""><br class="">CMake Support: <a href="http://cmake.org/cmake/help/support.html" class="">http://cmake.org/cmake/help/support.html</a><br class="">CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" class="">http://cmake.org/cmake/help/consulting.html</a><br class="">CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" class="">http://cmake.org/cmake/help/training.html</a><br class=""><br class="">Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" class="">http://www.kitware.com/opensource/opensource.html</a><br class=""><br class="">Follow this link to subscribe/unsubscribe:<br class=""><a href="http://public.kitware.com/mailman/listinfo/cmake" class="">http://public.kitware.com/mailman/listinfo/cmake</a></div></blockquote></div><br class=""></body></html>