[CMake] GET_TARGET_PROPERTY issue
Alexandre Abadie
Alexandre.Abadie at irisa.fr
Fri Aug 8 05:18:22 EDT 2008
Dear CMake users,
I am trying to build python bindings of my C++ lib with boost::python
and cmake 2.6. What I do is generating a dynamic library using the
add_library command (I attached a piece of code based on boost::python
first example at
http://www.boost.org/doc/libs/1_34_1/libs/python/doc/tutorial/doc/html/index.html).
The problem is that cmake generate the file libhello.so and it doesn't
work because the file should be called hello.so. So what I want to do is
to rename the library generated to the expected one (hello.so). I find
something in the CMake FAQ
(http://www.cmake.org/Wiki/CMake_FAQ#How_do_I_rename_a_library_after_it_has_already_been_built.3F)
but the GET_TARGET_PROPERTY can't give me the PREFIX of the library file.
Is there a way for doing that properly ?
Thanks in advance,
Alex
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080808/cb85b9cf/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello.cpp
Type: text/x-c++src
Size: 50 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080808/cb85b9cf/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello.h
Type: text/x-chdr
Size: 20 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080808/cb85b9cf/attachment.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: helloWrap.cpp
Type: text/x-c++src
Size: 135 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080808/cb85b9cf/attachment-0001.cpp>
More information about the CMake
mailing list