Re: [CMake] DLL handling under CMake

2017-08-12 Thread Clément Gregoire
quot; "${TO_FIXUP_LIBS}" > "${TO_FIXUP_DIRS}") > > # End of script ran by the add_custom_command > > else() > > > > set(THIS_FILE ${CMAKE_CURRENT_LIST_FILE}) > > message(${THIS_FILE}) > > function(run_fixup _target _libs _dirs) > > message(${THIS_FILE

Re: [CMake] DLL handling under CMake

2017-07-17 Thread Louis-Paul CORDIER
MMENT "Fixing up dependencies for ${_target}" VERBATIM ) endfunction() endif() *De : *Clément Gregoire <mailto:lec...@gmail.com> *Envoyé le :*jeudi 4 mai 2017 08:37 *À : *Hendrik Sattler <mailto:p...@hendrik-sattler.de>; Lo

Re: [CMake] DLL handling under CMake

2017-07-04 Thread Louis-Paul CORDIER
VERBATIM ) endfunction() endif() *De : *Clément Gregoire <mailto:lec...@gmail.com> *Envoyé le :*jeudi 4 mai 2017 08:37 *À : *Hendrik Sattler <mailto:p...@hendrik-sattler.de>; Louis-Paul CORDIER <mailto:lp.cord...@dynamixyz.com>; Cmake Mailing List <mailto:cmake@

Re: [CMake] DLL handling under CMake

2017-05-11 Thread Hendrik Sattler
et} POST_BUILD COMMAND ${CMAKE_COMMAND} -DRUN_IT:BOOL=ON -DTO_FIXUP_FILE=$<TARGET_FILE:${_target}> -DTO_FIXUP_LIBS=${_libs} -DTO_FIXUP_DIRS=${_dirs} -P ${THIS_FILE} COMMENT "Fixing up dependencies for ${_target}" VERBATIM ) endfuncti

Re: [CMake] DLL handling under CMake

2017-05-04 Thread lectem
À : Hendrik Sattler; Louis-Paul CORDIER; Cmake Mailing List Objet :Re: [CMake] DLL handling under CMake I'd also be interested in this. I saw an old mail in the ML about this, but it seems fixup_bundle is old and cant use generator expressions, making it hard to use (I don't want to hardco

Re: [CMake] DLL handling under CMake

2017-05-04 Thread Clément Gregoire
I'd also be interested in this. I saw an old mail in the ML about this, but it seems fixup_bundle is old and cant use generator expressions, making it hard to use (I don't want to hardcode the executable path). Do you have a sample for this ? CMake would really benefit from having those features

Re: [CMake] DLL handling under CMake

2017-04-29 Thread Hendrik Sattler
Am 27. April 2017 10:43:50 MESZ schrieb Louis-Paul CORDIER : >This steps are tedious and I'm wondering if there is a mechanism that >exists or that have to be imagined to make the DLL nightmare end. I use BundleUtilities to achieve the copying of DLL files to the

Re: [CMake] DLL handling under CMake

2017-04-29 Thread Michael Jackson
Our project uses some custom cmake functions to gather the DLLs from 3rd party libs (HDF5, TBB, Qt) and create custom targets to copy them to the build directory and create install rules to copy them to the package when it is created. Yes, they were tedious to write and get correct but they

Re: [CMake] DLL handling under CMake

2017-04-28 Thread Nils Gladitz
On 04/27/2017 10:43 AM, Louis-Paul CORDIER wrote: I added my current code for handling Qt library in my project at the end of this email. (I put a huge part of it if someone want to reuse it). You will notice that this code is handling the case where you are debugging using Visual Studio, to

[CMake] DLL handling under CMake

2017-04-28 Thread Louis-Paul CORDIER
Hi, I'm using CMake for a while now for cross-platform project. In opposition to Linux, Windows does not have a library system management through a repository system. I would say that 99% of applications that have common libraries between them does not share the runtimes. Each time, the .dll