Merge pull request #396 from apthorpe/master

Added CTest support
This commit is contained in:
Thomas Fussell 2019-07-23 08:17:23 -04:00 committed by GitHub
commit 5791ca80bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -1,6 +1,10 @@
cmake_minimum_required(VERSION 3.1) cmake_minimum_required(VERSION 3.1)
project(xlnt_all) 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 # This indicates to CMakeLists in subdirectories that they are part of a larger project
set(COMBINED_PROJECT TRUE) set(COMBINED_PROJECT TRUE)

View File

@ -78,3 +78,6 @@ if(MSVC AND NOT STATIC)
$<TARGET_FILE:xlnt> $<TARGET_FILE:xlnt>
$<TARGET_FILE_DIR:xlnt.test>) $<TARGET_FILE_DIR:xlnt.test>)
endif() endif()
# Use add_test() for CTest support
add_test(NAME xlnt_test COMMAND xlnt.test)