[CMake] Getting a list of all targets?
Mathieu Malaterre
mathieu.malaterre at gmail.com
Mon Sep 6 03:42:21 EDT 2010
On Mon, Sep 6, 2010 at 12:51 AM, Clifford Yapp <cliffyapp at gmail.com> wrote:
> Is there any way within a CMakeLists.txt file to get a list of all the
> currently defined targets? I'm interested in this for two primary
> reasons, and if anyone can point me to other solutions for these that
> would be great, but I'm sort of stumped.
I used the following hack (different purpose in my case), item
0018317 should give you all shared libs exported by the project:
http://cmake.org/Bug/view.php?id=9822#bugnotes
hth
--
Mathieu
More information about the CMake
mailing list