Hi all,
I have a project setup with the following directory structure:
/
CMakeLists.txt
Messages/
CMakeLists.txt
MessageTest/
CMakeLists.txt
Build/
bin/
Debug/
Release/
The subdirectory "Messages" outputs a shared library called "Messages" in
release mode and "Messages_d" in debug mode. The Messages library links
statically to the Google Protocol Buffer library.
The subdirectory "MessageTest" outputs an executable called
"MessageTest.exe", which needs to link to the Messages library.
The subdirectory "Build" is where I tell CMake to build the project. The
directory "bin" where I'd like the output (not object files) files to be
placed.
When I tell MessageTest to link to Messages (using target_link_libraries and
specifying the Messages library), the Google Protocol Buffer library is
added as a dependency. This is undesired, since the library is already
linked statically to the Messages library, and is not directly needed by the
MessageTest executable. Also, the .lib file generated by the build does not
get placed into Build/bin, which is what I would like. What is the best way
to do this?
Thanks as always,
--
Nathan Paul
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake