[CMake] 3rd party modules
Brad King
brad.king at kitware.com
Tue Sep 26 10:24:16 EDT 2006
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
> Got it. Thank You.
> Now, there is another thing that I can't seem to find.
> If I have a Foo library with CMakeLists.txt:
> ADD_LIBRARY(Foo foo.cpp)
> then I have FooConfig.cmake for it:
> SET(FOO_LIBRARY @LIBRARY_OUTPUT_PATH@/@FOO_LIBRARY_NAME@)
> where @FOO_LIBRARY_NAME@ is the name of the library
> that the previous "ADD_LIBRARY(Foo foo.cpp)" generated. In example,
> "libFoo.so" on Linux, "Foo.dll" on Windows, etc.
> How can I obtain that name?
Look at GET_TARGET_PROPERTIES for the LOCATION attribute.
-Brad
More information about the CMake
mailing list