<div dir="ltr">directory property 'TESTS' returns the tests created in the <b>current</b> directory only.<div>The main reason to this limitation is the fact that tests created in different directories can have same name.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">Le mer. 19 sept. 2018 à 02:22, Raffi Enficiaud <<a href="mailto:raffi.enficiaud@mines-paris.org">raffi.enficiaud@mines-paris.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I just wanted to know if it is possible from a directory to add labels <br>
on tests defined on a sub-directory (via add_subdirectory).<br>
<br>
When I do a set_tests_properties on the tests that were retrieved with <br>
get_directory_property, cmake says that the test is not found.<br>
<br>
Maybe I am missing some syntax there? The following does not work:<br>
<br>
get_directory_property(CURRENT_DIRECTORY_TESTS<br>
                                  DIRECTORY ${my_dir}<br>
                                  TESTS)<br>
<br>
if(NOT "${CURRENT_DIRECTORY_TESTS}" STREQUAL "")<br>
     set_tests_properties(${CURRENT_DIRECTORY_TESTS} PROPERTIES LABELS <br>
"some-labels")<br>
endif()<br>
<br>
<br>
Thanks!<br>
Raffi<br>
<br>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div>