[CMake] Adding a custom_command dependency to all sources

2018-02-22 Thread Pentecost, Caleb
Howdy, I'm looking to add a dependency to all source files to ensure that a generated file is up-to-date before compilation. This generated file is "passed in" to the compiler via a global compiler definition. Is there an easy or built-in way to do this, or will I need to manually add a made-up

Re: [CMake] Copying Shared Libraries (DLLs) Next to the Executable

2018-02-22 Thread Hendrik Sattler
Am 22. Februar 2018 04:20:40 MEZ schrieb "Marek Vojtko (Firaxis)" : >I was looking into GetPrerequisites and FixupBundle, but both of those >operate on an already existing executable and try to guess what shared >libraries (DLLs) it might need. It feels silly to guess at something >that CMake al

Re: [CMake] Copying Shared Libraries (DLLs) Next to the Executable

2018-02-22 Thread Daniel Schepler
Personally, I find it much simpler just to expect the Path to include the locations of the DLL files as opposed to copying them. (And I often write small batch scripts to set up this development environment, and then optionally start cmake-gui.exe / devenv.exe / etc.) -- Daniel Schepler __

[CMake] Building and exporting static and shared libs - best practice?

2018-02-22 Thread Rich T
It's often useful to be able to make both static and shared varients of a library available to users of a package. My goal is to make the project cmake files as clean as possible, while supporting usage of either or both types of library by users. It should work from both build and installed locat