<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
On 01/04/12 14:32, brian wrote:<br>
<span style="white-space: pre;">> I've been able to generate VS
2010 solution's via CMake for my C++/CLI project (.NET project).
We've added the log4net.dll to the project by hand. This is the
.NET version of the log4j project. What I'd like to do is add a
reference to this DLL to the solution via cmake using a
Findlog4net.cmake file with a given version number but haven't
figured out how to integrate this since its a dll only.<br>
><br>
> I've tried, <br>
> find_library(LOG4NET_LIB log4net ${PATH_TO_DLL_LOCATION})<br>
><br>
> but this hasn't worked.<br>
><br>
> Any ideas?<br>
><br>
> Brian<br>
><br>
><br>
> --<br>
><br>
> Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></span><br>
I recently submitted a patch for CMake to allow linking against .NET
DLLs. The code to support this should be in 2.8.7. The way to
accomplish the .NET linking is:<br>
<br>
set_target_properties(your_target VS_DOTNET_REFERENCES
"System;Log4Net.Logger")<br>
<br>
or whatever the necessary namespaces are. You will of course need
the relevant DLLs in the system search path at build and run time.<br>
<br>
Hope that helps.<br>
<br>
- -Aaron<br>
<br>
<br>
<br>
- -- <br>
Aaron Ten Clay<br>
MadeByAI Consulting<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2.0.17 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a class="moz-txt-link-freetext" href="http://enigmail.mozdev.org/">http://enigmail.mozdev.org/</a><br>
<br>
iEYEARECAAYFAk8E9tsACgkQXXAPYyclsaWHLgCffvl0ffA7hnl3yCC1y9JXPWRx<br>
7P8AnAmC4jYSGOzkiNMiMl/onsBrNLB6<br>
=KRmB<br>
-----END PGP SIGNATURE-----<br>
<br>
</body>
</html>