From bd84c7f5765a9eb80729abf3b13d3f9b72a5c140 Mon Sep 17 00:00:00 2001 From: Bob Apthorpe Date: Wed, 17 Jul 2019 12:09:07 -0500 Subject: [PATCH] Added CTest support --- CMakeLists.txt | 4 ++++ tests/CMakeLists.txt | 3 +++ 2 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d2a50996..3cf84a44 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,10 @@ cmake_minimum_required(VERSION 3.1) project(xlnt_all) +# CTest setup +# include (CTest) # Add this for valgrind support; CTest works without it +enable_testing() + # This indicates to CMakeLists in subdirectories that they are part of a larger project set(COMBINED_PROJECT TRUE) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 74c24352..1a7ecb4f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -73,3 +73,6 @@ if(MSVC AND NOT STATIC) $ $) endif() + +# Use add_test() for CTest support +add_test(NAME xlnt_test COMMAND xlnt.test) \ No newline at end of file