From 9d3ff03fa818cc48ae9ff610a7a6f94e60a930b8 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Fri, 28 Aug 2020 06:12:21 -0600 Subject: [PATCH] added ftst_vars.F90 to CMake build --- tests/unit/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt index eaf7c0f5694..7f146e2a14a 100644 --- a/tests/unit/CMakeLists.txt +++ b/tests/unit/CMakeLists.txt @@ -1,3 +1,6 @@ +# This is the CMake build file for the tests/unit tests of the PIO library. + +# Jim Edwards include (LibMPI) include_directories("${CMAKE_SOURCE_DIR}/tests/unit") @@ -35,6 +38,11 @@ endif () add_dependencies (tests pio_unit_test) +# Add ftst_vars.F90. +add_executable (ftst_vars EXCLUDE_FROM_ALL ftst_vars.F90) +target_link_libraries (ftst_vars piof) +add_dependencies (tests ftst_vars) + # Test Timeout in seconds. set (DEFAULT_TEST_TIMEOUT 60) @@ -55,6 +63,10 @@ else () EXECUTABLE ${CMAKE_CURRENT_BINARY_DIR}/pio_unit_test NUMPROCS 4 TIMEOUT ${DEFAULT_TEST_TIMEOUT}) + add_mpi_test(ftst_vars + EXECUTABLE ${CMAKE_CURRENT_BINARY_DIR}/ftst_vars + NUMPROCS 4 + TIMEOUT ${DEFAULT_TEST_TIMEOUT}) endif () if (PIO_HDF5_LOGGING)