[CMake] What do Visual Studio users do so they can run/debug their programs when using 3rd party .dlls?
Eric Wing
ewmailing at gmail.com
Fri May 23 19:54:12 EDT 2014
On 5/23/14, Dan Kegel <dank at kegel.com> wrote:
> On Fri, May 23, 2014 at 4:38 PM, Eric Wing <ewmailing at gmail.com> wrote:
>> On 5/23/14, Dan Kegel <dank at kegel.com> wrote:
>>> You can add the directory containing the 3rd party DLLs to the global
>>> PATH environment variable, I bet.
>>
>> ... I just want a
>> work-out-of-the-box solution with CMake doing local copies.
>
> So... copy the DLLs to the same folder as your test app?
So that's what I think I want, unless there is a smarter way. (As I
said, changing the global environment isn't really a good option...a
local per-project setting would be cool though.) Since Visual Studio
can change these directories depending on the configuration, is there
a robust CMake way that most of the community already uses to solve
this?
>
>>> http://msdn.microsoft.com/en-us/library/ms235299.aspx
>> I've read that. This is my goal which I want to do with CMake.
>> "you can directly install redistributable Visual C++ DLLs in the
>> application local folder"
>
> http://msdn.microsoft.com/en-us/library/dd293565.aspx is a bit more
> explicit.
"Copy the appropriate MFC and C Run-Time (CRT) library files--for
example, for an x86 platform and Unicode support, copy mfc100u.dll and
msvcr100.dll from \Program Files\Microsoft Visual Studio
10.0\VC\redist\x86\--and then paste them in the \Release\ folder of
your MFC project."
So again, is there something that already exists that the CMake
community is using? Finding both the path to the Visual Studio version
you are using and the CMake/Visual Studio build directory (what if I
want "MinSizeRel" instead of "Release") is going to be full of little
gotchas that I know I will screw up if I have to write everything from
scratch. I am kind of hoping there is already a pre-canned solution
CMake users are using since this is a common issue.
Thanks,
Eric
--
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
More information about the CMake
mailing list