# # cmake -P script to get the CTest testing XML directory # /Testing/ given just the directory path. # # Usage: # # cmake \ # -DPROJECT_NAME= \ # -D${PROJECT_NAME}_TRIBITS_DIR= \ # -DCTEST_BUILD_DIR= \ # -P /ctest_driver/TribitsGetCTestTestXmlDir.cmake # # This script reads in the /Testing/TAG to get and # then prints the directory /Testing/ to STDOUT. # cmake_minimum_required(VERSION 3.23.0 FATAL_ERROR) if ("${PROJECT_NAME}" STREQUAL "") message(FATAL_ERROR "Error, PROJECT_NAME must be set!") endif() if ("${${PROJECT_NAME}_TRIBITS_DIR}" STREQUAL "") message(FATAL_ERROR "Error, ${PROJECT_NAME}_TRIBITS_DIR must be set!") endif() if ("${CTEST_BUILD_DIR}" STREQUAL "") message(FATAL_ERROR "Error, CTEST_BUILD_DIR must be set!") endif() set( CMAKE_MODULE_PATH "${${PROJECT_NAME}_TRIBITS_DIR}/core/utils" "${${PROJECT_NAME}_TRIBITS_DIR}/core/package_arch" "${${PROJECT_NAME}_TRIBITS_DIR}/ctest_driver" ) include(TribitsReadTagFile) set(TAG_FILE "${CTEST_BUILD_DIR}/Testing/TAG") tribits_read_ctest_tag_file("${TAG_FILE}" buildStartTime cdashGroup cdashModel) message("${CTEST_BUILD_DIR}/Testing/${buildStartTime}")