[CMake] Setup/tear down steps for CTest

2016-08-20 Thread Craig Scott
Let's say a project defines a bunch of tests which require setup and tear down steps before/after all the tests are run (not each individual test, I'm talking here about one setup before all tests are run and one tear down after all tests have finished). While this could be done by a script driving

Re: [CMake] Adding dependencies for configuration stage

2016-08-20 Thread Craig Scott
Check out CMAKE_CONFIGURE_DEPENDS, I think it should do what you want: https://cmake.org/cmake/help/latest/prop_dir/CMAKE_CONFIGURE_DEPENDS.html On Saturday, 20 August 2016, Daniel Levin wrote: > CMake can automatically invoke configuration at build time when any > dependency has been modified.