Re: [CMake] Build and run an external project

2018-12-04 Thread James Bigler
Yes, I'm able to do it manually using the custom target I created with add_custom_target, by editing the debug properties to get a runnable object. I was hoping that the VS_DEBUGGER_COMMAND used for add_executable would also work with the add_custom_target, but alas they don't. On Tue, Dec 4, 201

Re: [CMake] Build and run an external project

2018-12-03 Thread Eric Noulard
Le mar. 4 déc. 2018 à 06:11, James Bigler a écrit : > Unfortunately I don't think your suggestion will work. > > I need to invoke a custom executable to build my project and not a > msproject. I also need to copy the executable into the build directory. > Sorry I miss the fact that you moved th

Re: [CMake] Build and run an external project

2018-12-03 Thread James Bigler
Unfortunately I don't think your suggestion will work. I need to invoke a custom executable to build my project and not a msproject. I also need to copy the executable into the build directory. On Mon, Dec 3, 2018 at 9:55 PM Eric Noulard wrote: > Did you check whether if > https://cmake.org/c

Re: [CMake] Build and run an external project

2018-12-03 Thread Eric Noulard
Did you check whether if https://cmake.org/cmake/help/latest/command/include_external_msproject.html wouldn't be better in your case? Le mar. 4 déc. 2018 01:43, James Bigler a écrit : > I have an external project that I would like to compile using their build > system, and be able to set the V

[CMake] Build and run an external project

2018-12-03 Thread James Bigler
I have an external project that I would like to compile using their build system, and be able to set the VS_COMMAND to the result of the project so I can run it. add_custom_target(${cmake_target} COMMAND make mytarget ${BUILD_ARGS} COMMAND ${CMAKE_COMMAND} -E copy_if_differen