[CMake] Getting a filename from a target.

Moreland, Kenneth kmorel at sandia.gov
Tue Feb 15 11:59:35 EST 2005


Is there a way to get the name of the file generated by a target?  For
example, when a CMake command like ADD_EXECUTABLE(Foo ...) or
ADD_LIBRARY(Foo ...) is given, a target named Foo is created, but so is
one that points to a file that is generated on the system.  How do you
get the name of this latter target that points to a usable file?

-Ken

   ****      Kenneth Moreland
    ***      Sandia National Laboratories
***********
*** *** ***  email: kmorel at sandia.gov
**  ***  **  phone: (505) 844-8919
    ***      fax:   (505) 845-0833



More information about the CMake mailing list