Re: [CMake] dependencies of cross compiliations

2018-12-03 Thread Torsten Robitzki
> Am 27.11.2018 um 19:55 schrieb Eric Noulard : > > However from my point of view and my cross-compiling experience when you > cross-compile you have: > > 1) the host compiler which is used to compile "host tools" > 2) the target compiler (may be several of them) to "cross-compile" > > My assum

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] linked dependencies in exported cmake package

2018-12-03 Thread Sergei Nikulov
вт, 4 дек. 2018 г. в 10:13, Stéphane Ancelot : > > Hi, > > I made an exported package for a library that needs linking qt5. > > find_package() works to find my library , however, I don't know how to > handle the linking of external libs needed by this package. > > I suppose that must be managed ins

[CMake] linked dependencies in exported cmake package

2018-12-03 Thread Stéphane Ancelot
Hi, I made an exported package for a library that needs linking qt5. find_package() works to find my library , however, I don't know how to handle the linking of external libs needed by this package. I suppose that must be managed inside the exported package, by which way ? Regards, S.Ancel

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