Ensure default testfiles directory for working copy exists

This commit is contained in:
Martchus 2017-11-17 23:36:36 +01:00
parent 684e97ce2a
commit 9744efda70
1 changed files with 3 additions and 0 deletions

View File

@ -310,6 +310,9 @@ if(CPP_UNIT_LIB OR META_NO_CPP_UNIT)
# add a file called "srcdirref" to the build directory; this file contains the path of the sources so tests can easily find test files contained in the source directory
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/srcdirref" "${CMAKE_CURRENT_SOURCE_DIR}")
# ensure the directory "testfiles" exists in the build directory; tests will create the directory for working copies of testfiles there by default
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/testfiles")
set(META_HAVE_TESTS YES)
else()