Skip to content

Commit

Permalink
added ftst_vars.F90 to CMake build
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Aug 28, 2020
1 parent e9f4f75 commit 9d3ff03
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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")
Expand Down Expand Up @@ -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)

Expand All @@ -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)
Expand Down

0 comments on commit 9d3ff03

Please sign in to comment.