Eric Tellefsen wrote:
Hi,
I'm new to the list and relatively new to CMake. I'm currently in the
process of attempting to migrate an existing project to CMake (from
plain Unix makefiles)
The source files for each library are in a series of subdirectories as
illustrated in the simple diagrams at the bottom of the mail.
What I'm currently doing is creating CMakeLists.txt for each individual
library. I am also trying to represent the inter-library dependencies
by adding add_subdirectory() and add_dependencies() to each library
project (which almost all do).
Use target_link_libraries instead of add_dependencies.
-Bill
_______________________________________________
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