Re: [CMake] 2 questions :)

2010-03-11 Thread Matt McCormick
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

Re: [CMake] 2 questions :)

2010-03-11 Thread Benoit Thomas
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:

Re: [CMake] 2 questions :)

2010-03-11 Thread Alexander Neundorf
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

[CMake] 2 questions :)

2010-03-10 Thread Benoit Thomas
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