add_subdirectory (/mylib/src /mylib/bin)
I'm surprised this works, but for good practice, I would leave out the first
slash since it usually used to indicate an absolute path, i.e. mylib/src
instead
of /mylib/src.
Everything works like a charm, but when I add a dependency
Hi,
Thanks for the answer, I'll use target_link_libraries for my dependency
problem.
For the multiple add_library, someone else had the same problem (and
explain it better than I did), and his solution also worked for me :)
Ben.
On 2010-03-11 09:42, Matt McCormick wrote:
On Wednesday 10 March 2010, Benoit Thomas wrote:
Hello,
I have 3 projects, one library and 2 executables. Both executables
depends on the library.
The library is legacy stuff, and I don't need to fully convert it to
cmake so the cmakelists. txt looks something like this:
add_library(mylib
Hello,
I have 3 projects, one library and 2 executables. Both executables
depends on the library.
The library is legacy stuff, and I don't need to fully convert it to
cmake so the cmakelists. txt looks something like this:
add_library(mylib STATIC IMPORTED)
set_target_properties(mylib