Ensure default testfiles directory for working copy exists

experiment/improve_get_date_part
Martchus 5 years ago
parent 684e97ce2a
commit 9744efda70
  1. 3
      cmake/modules/TestTarget.cmake

@ -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()

Loading…
Cancel
Save