CMakeLists.txt 524 Bytes
Newer Older
Jessee, Matthew's avatar
Jessee, Matthew committed
1
2
3
INCLUDE(SetDefault)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/..)

4
IF(${PROJECT_NAME}_ENABLE_Fortran AND NOT ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows"))
5
6
7
8
9
  SET(FTESTS)
  LIST(APPEND FTESTS
    tstConstrainedSparseGrids.f90
    tstSparseGrids.f90
  )
Jessee, Matthew's avatar
Jessee, Matthew committed
10

11
12
  #handle the fortran tests
  FOREACH(test ${FTESTS})
Jessee, Matthew's avatar
Jessee, Matthew committed
13

14
15
16
17
18
19
20
21
22
    GET_FILENAME_COMPONENT(name ${test} NAME_WE)
    TRIBITS_ADD_EXECUTABLE_AND_TEST(${name}
      SOURCES ${test}
      COMM serial
      LINKER_LANGUAGE Fortran
      TIMEOUT 14400
    )
  ENDFOREACH()
ENDIF()