[CMake] Build Dependencies problem
Bill Hoffman
bill.hoffman at kitware.com
Tue Jul 14 15:11:15 EDT 2009
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
More information about the CMake
mailing list