Re: [CMake] Missing dll on program startup - a way automate it?

2019-11-20 Thread Michael Jackson
You can also use cmake to just copy the DLLs into the appropriate directory. Here is a snippet from our own projects. #--- #- This copies all the Prebuilt Pipeline files into the Build directory so the help #- works from

Re: [CMake] Testing an exe with gtest - possible?

2019-11-20 Thread Kyle Edwards via CMake
On Wed, 2019-11-20 at 00:54 +0100, cen wrote: > Hi > > I have an existing c++ exe project which I want to test with gtest. > I  > have not yet found an easy way to keep the project as is and test it  > directly since gtest insists (obviously) to link against the code > being  > tested. I found a s

Re: [CMake] Missing dll on program startup - a way automate it?

2019-11-20 Thread Petr Kmoch
Hi. I haven't used it yet, but I believe the target property https://cmake.org/cmake/help/latest/prop_tgt/VS_DEBUGGER_ENVIRONMENT.html might help you. Petr On Wed, 20 Nov 2019 at 01:02, cen wrote: > Hi > > Perhaps not really a cmake problem but here we go. An exe depends on a > few DLLs which