<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 11 June 2015 at 15:22, Johannes Zarl-Zierl <span dir="ltr"><<a href="mailto:johannes.zarl-zierl@jku.at" target="_blank">johannes.zarl-zierl@jku.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">Hi,<br>
<br>
> I tried several times now to find documentation about how to define<br>
> and use target names which seem to have namespaces, like Qt ones.<br>
><br>
> For example: add_executable( MyProject::some_target ... )<br>
<br>
</span>AFAIK target namespaces are intended for imported targets, not "regular"<br>
targets:<br>
<br>
"A NAMESPACE with double-colons is specified when exporting the targets for<br>
installation. This convention of double-colons gives CMake a hint that the<br>
name is an IMPORTED target when it is used by downstreams with the<br>
target_link_libraries() command. This way, CMake can issue a diagnostic if the<br>
package providing it has not yet been found."<br>
[1]<br>
<br>
<br>
[1] <a href="http://www.cmake.org/cmake/help/v3.3/manual/cmake-packages.7.html?highlight=namespace" rel="noreferrer" target="_blank">http://www.cmake.org/cmake/help/v3.3/manual/cmake-packages.7.html?highlight=namespace</a><br>
<span class=""><br></span></blockquote><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">
> I can't find any documentation or even name for this.<br>
> Is it considered a "namespace"?<br>
> In any way I found nothing specific to this syntax in the wiki.<br>
<br>
</span>The concept is called "namespace" in cmake, just as you assumed. I don't know<br>
if there's anything about it in the wiki, but the official documentation has a<br>
(very) short description in the cmake_packages[1] page, as well as in the<br>
documentation for the export command.<br></blockquote><div><br></div><div>(sorry I was actually thinking about the documentation and typed "wiki")</div><div><br></div><div>Thanks, it was not totally clear that the definition of the namespace is done </div><div>in another operation, so I assumed that it was just a local option, not ana actual language feature,</div><div>and simply dismissed it.</div><div>Maybe the concept should have it's own section?</div><div>There is no mention of this in the language page. Or is it really useful only if you are writing exports?</div><div><br></div><div>Anyway thanks, it's clearer now.</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Cheers,<br>
  Johannes<br>
<div class=""><div class="h5">--<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="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div></div>