Re: [CMake] Question about add_library with IMPORTED

2010-03-09 Thread Benoit Thomas
I knew I was missing something :) Thanks for the answers, work perfectly now ! Ben. On 2010-03-09 12:27, Benoit Thomas wrote: Hello, I have a library which is a Visual Studio project only (which will be converted to cmake in the future). In my current cmake project, I try adding this libra

Re: [CMake] Question about add_library with IMPORTED

2010-03-09 Thread Alexander Neundorf
On Tuesday 09 March 2010, Benoit Thomas wrote: > Hello, > > I have a library which is a Visual Studio project only (which will be > converted to cmake in the future). > > In my current cmake project, I try adding this library using the > following code: > > set (IMPORTED_LOCATION "../farfaraway/lib

Re: [CMake] Question about add_library with IMPORTED

2010-03-09 Thread Ryan Pavlik
IMPORTED_LOCATION is a target property, not a variable - use set_target_properties after your add_library, see the docs for more info. Ryan On Tue, Mar 9, 2010 at 11:27 AM, Benoit Thomas wrote: > Hello, > > I have a library which is a Visual Studio project only (which will be > converted to cmak

Re: [CMake] Question about add_library with IMPORTED

2010-03-09 Thread Michael Wild
On 9. Mar, 2010, at 18:27 , Benoit Thomas wrote: > Hello, > > I have a library which is a Visual Studio project only (which will be > converted to cmake in the future). > > In my current cmake project, I try adding this library using the following > code: > > set (IMPORTED_LOCATION "../farfa

[CMake] Question about add_library with IMPORTED

2010-03-09 Thread Benoit Thomas
Hello, I have a library which is a Visual Studio project only (which will be converted to cmake in the future). In my current cmake project, I try adding this library using the following code: set (IMPORTED_LOCATION "../farfaraway/lib") add_library ("mylib" STATIC IMPORTED) When I run cmak