From 4c18b3a9a3bc1a8fc4317f0076716ebdc81af917 Mon Sep 17 00:00:00 2001 From: Kevin Rocard Date: Sat, 11 Apr 2015 23:27:43 +0200 Subject: Add comments in ctest list file Mainly add a some documentation about the custom cmake set_test_env function. --- ctest/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ctest/CMakeLists.txt b/ctest/CMakeLists.txt index e9d6bb4..6ee2e10 100644 --- a/ctest/CMakeLists.txt +++ b/ctest/CMakeLists.txt @@ -26,11 +26,15 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Enable tests, coverage, memcheck, ... +# See http://www.cmake.org/Wiki/CMake/Testing_With_CTest#Dashboard_Preparation include(CTest) # Ctest requires its configuration to be placed at the build root configure_file(${CMAKE_CURRENT_LIST_DIR}/CTestCustom.cmake ${CMAKE_BINARY_DIR} COPYONLY) +# Set environement variables so that executables and libraries can be find by tests. +# (avoids a make install before make test) function(set_test_env TestName) set_property(TEST ${TestName} PROPERTY ENVIRONMENT PATH=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}:$ENV{PATH} -- cgit v1.1