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")
> add_library ("mylib" STATIC IMPORTED)Does that work ? I thought you have to set target properties. How about this: add_library(mylib UNKNOWN IMPORTED) set_target_properties(mylib PROPERTIES IMPORTED_LOCATION "../faraway/foo.lib" Alex _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
