[CMake] 3rd party modules
Kedzierski,
Artur CIV NAVSURFWARCENDIV CORONA
artur.kedzierski at navy.mil
Fri Sep 29 11:44:07 EDT 2006
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:brad.king at kitware.com]
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4670 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060929/d1e0cf34/smime.bin
More information about the CMake
mailing list