[CMake] Specifying Project Options in Visual Studio using CMakeLists.txt
Bill Hoffman
bill.hoffman at kitware.com
Fri May 2 08:45:07 EDT 2008
Malhotra, Anupam wrote:
> Hi
>
>
>
> I am creating a static library using cmake. A .dsw is created for Visual
> Studio 6. This library is using some existing libraries (say snmp.lib).
> I want to specify in CMakeLists.txt that this existing library be linked
> with the library I am creating. How can we specify something in the
> “Project Options” field in the “Library Tag” in the “Project Settings”
> in CMakeLists.txt?
>
If you want to link in snmp.lib, then use target_link_libraries.
find_library(SNMP_PATH snmp)
target_link_libraries(foo ${SNMP_PATH})
-Bill
More information about the CMake
mailing list