# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.


#
# Required preamble
#

cmake_minimum_required(VERSION 3.4)

list(APPEND CMAKE_PREFIX_PATH $ENV{KIM_API_CMAKE_PREFIX_DIR})
find_package(KIM-API 2.0 REQUIRED CONFIG)
if(NOT TARGET kim-api)
  enable_testing()
  project("${KIM_API_PROJECT_NAME}" VERSION "${KIM_API_VERSION}"
    LANGUAGES CXX C Fortran)
endif()

# End preamble


set(MODEL_NAME "MJ_MorrisAgaLevashov_2008_Fe__MO_857282754307_003")
set(MODEL_SOURCE_NAME "MJ_MorrisAgaLevashov_Fe")

add_kim_api_model_library(
  NAME                    ${MODEL_NAME}
  CREATE_ROUTINE_NAME     "create"
  CREATE_ROUTINE_LANGUAGE "fortran"
  )

target_sources(${MODEL_NAME} PRIVATE ${MODEL_SOURCE_NAME}.f90)
