Thanks Brad.
So for those two lines:
SET(CMAKE_DEBUG_POSTFIX "Debug")
GET_TARGET_PROPERTY(LIBNAME Foo LOCATION)
Should I get?
<prefix>/lib/libfooDebug.a
I am getting (no 'Debug'):
<prefix>/lib/libfoo.a
but libfooDebug.a is generated.-- Artur Kedzierski, JF33 Voice (951) 273-5069, DSN 933-5069, Fax (951) 273-5201 -----Original Message----- From: Brad King [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 7:24 To: Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA Cc: CMake Mailing List Subject: Re: [CMake] 3rd party modules 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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
