IMPORTED_LOCATION is a target property, not a variable - use set_target_properties after your add_library, see the docs for more info.<br><br>Ryan<br><br><div class="gmail_quote">On Tue, Mar 9, 2010 at 11:27 AM, Benoit Thomas <span dir="ltr"><<a href="mailto:benoit.thomas@gameloft.com">benoit.thomas@gameloft.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello,<br>
<br>
I have a library which is a Visual Studio project only (which will be converted to cmake in the future).<br>
<br>
In my current cmake project, I try adding this library using the following code:<br>
<br>
set (IMPORTED_LOCATION "../farfaraway/lib")<br>
add_library ("mylib" STATIC IMPORTED)<br>
<br>
When I run cmake using:<br>
<br>
cmake . -G "Visual Studio 9 2008"<br>
<br>
I don't see the imported library in my visual studio solution. I do not know what I'm missing.<br>
<br>
Thank you,<br>
Ben.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Ryan Pavlik<br>HCI Graduate Student<br>Virtual Reality Applications Center<br>Iowa State University<br><br><a href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a><br>
<a href="http://academic.cleardefinition.com">http://academic.cleardefinition.com</a><br>Internal VRAC/HCI Site: <a href="http://tinyurl.com/rpavlik">http://tinyurl.com/rpavlik</a><br>