-
Lionel GUEZ authored
We can build some test sequential programs under Overlap.
Lionel GUEZ authoredWe can build some test sequential programs under Overlap.
CMakeLists.txt 1.16 KiB
cmake_minimum_required(VERSION 3.20)
project(Detection_eddies LANGUAGES Fortran)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS Debug Release Profile
RelWithDebInfo)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
find_package(NetCDF_Fortran REQUIRED)
find_package(MPI)
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
find_package(Jumble REQUIRED CONFIG)
find_package(NetCDF95 REQUIRED CONFIG)
find_package(Contour_531 REQUIRED CONFIG)
find_package(Shapelib_03 REQUIRED CONFIG)
find_package(Geometry REQUIRED CONFIG)
find_package(Numer_Rec_95 REQUIRED CONFIG)
find_package(GPC_F REQUIRED CONFIG)
endif()
if(NOT TARGET fortranGIS)
# Some test programs use fortrangis and do not use Shapelib_03:
find_package(fortrangis REQUIRED CONFIG)
endif()
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
STRING(FIND ${CMAKE_Fortran_FLAGS_DEBUG} invalid index)
if(NOT ${index} EQUAL -1)
message(WARNING "We cannot use -ffpe-trap=invalid because of GFortran bug "
"with quiet NaNs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70817")
endif()
endif()
add_subdirectory(Inst_eddies)
add_subdirectory(Overlap)
add_subdirectory(Common)
include(TAGS)