Skip to content

Commit

Permalink
Merge branch 'fix/esmx-compilers' into release/8.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
theurich committed Jul 13, 2023
2 parents c089096 + 64c91c0 commit cc20443
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions ESMX_ExternalDriverAPIProto/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
cmake_minimum_required(VERSION 3.5.2)
enable_language(Fortran)
cmake_minimum_required(VERSION 3.22)

add_subdirectory(${ESMF_ESMXDIR}/Driver ./ESMX_Driver)
# Where to look for the local Find<Package>.cmake files
list(APPEND CMAKE_MODULE_PATH "${ESMF_ESMXDIR}/Driver/cmake")

# Find ESMF
find_package(ESMF 8.5.0 MODULE REQUIRED)

# Set compilers consistent with ESMF
set(CMAKE_Fortran_COMPILER "${ESMF_F90COMPILER}")
set(CMAKE_CXX_COMPILER "${ESMF_CXXCOMPILER}")
set(CMAKE_C_COMPILER "${ESMF_CCOMPILER}")

# Specific project settings
project(ExternalDriverAPIProto VERSION 0.1.0)
# Project
project(ExternalDriverAPIProto
VERSION 1.0.0
LANGUAGES Fortran CXX C
)

# Add ESMX driver
add_subdirectory(${ESMF_ESMXDIR}/Driver ./ESMX_Driver)

# Create executable
add_executable(externalApp externalApp.F90)
Expand Down

0 comments on commit cc20443

Please sign in to comment.