Re: [CMake] Target Link Library

2014-03-12 Thread Lloyd
Thank you very much for the simple and clean solution. Thanks, Lloyd On Wed, Mar 12, 2014 at 3:20 PM, Nils Gladitz wrote: > On 12.03.2014 10:41, Nils Gladitz wrote: > >> If you created the target with add_library(mylibrary ...) >> target_link_library(MyExe mylibrary) should work. >> > > Sorr

Re: [CMake] Target Link Library

2014-03-12 Thread Nils Gladitz
On 12.03.2014 10:41, Nils Gladitz wrote: If you created the target with add_library(mylibrary ...) target_link_library(MyExe mylibrary) should work. Sorry, I didn't realize I copied your incorrectly named target_link_library() call ... the actual command should be target_link_libraries(). N

Re: [CMake] Target Link Library

2014-03-12 Thread Nils Gladitz
On 12.03.2014 09:58, Lloyd wrote: My cross platform project has a main module and a custom library. The main module depends on the custom library. Both these projects need to be built with cmake. At present the option I find to set this is to using the "target_link_library(MyExe ${CMAKE_CURREN

[CMake] Target Link Library

2014-03-12 Thread Lloyd
Hi, My cross platform project has a main module and a custom library. The main module depends on the custom library. Both these projects need to be built with cmake. At present the option I find to set this is to using the "target_link_library(MyExe ${CMAKE_CURRENT_BINARY_DIR}/myLib.lib)". But thi