[CMake] Build and run an external project

James Bigler jamesbigler at gmail.com
Tue Dec 4 12:32:12 EST 2018


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, 2018 at 12:54 AM Eric Noulard <eric.noulard at gmail.com> wrote:

>
>
> Le mar. 4 déc. 2018 à 06:11, James Bigler <jamesbigler at gmail.com> 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 the executable around and was not a
> "regular" compile.
> I've read your message too fast, obviously, sorry.
>
> I'm not much a Visual Studio user and it has been a long time since I need
> to compile something on windows.
>
> You basically require that an executable not built by VS appears as a
> "runnable/debuggable" target in VS?
> Are you able to do that from VS "manually" ?
>
> Again I'm no VS/Windows specialist so others may have more valuable remark
> on that.
>
> --
> Eric
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20181204/494bd2f0/attachment.html>


More information about the CMake mailing list