Debian Codegraph @

examples/model-drivers/ex_model_driver_P_Morse/CMakeLists.txt

raw
1 #
2 # KIM-API: An API for interatomic models
3 # Copyright (c) 2013--2022, Regents of the University of Minnesota.
4 # All rights reserved.
5 #
6 # Contributors:
7 # Richard Berger
8 # Christoph Junghans
9 # Ryan S. Elliott
10 #
11 # SPDX-License-Identifier: LGPL-2.1-or-later
12 #
13 # This library is free software; you can redistribute it and/or
14 # modify it under the terms of the GNU Lesser General Public
15 # License as published by the Free Software Foundation; either
16 # version 2.1 of the License, or (at your option) any later version.
17 #
18 # This library is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 # Lesser General Public License for more details.
22 #
23 # You should have received a copy of the GNU Lesser General Public License
24 # along with this library; if not, write to the Free Software Foundation,
25 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 #
27
28 #
29 # Release: This file is part of the kim-api.git repository.
30 #
31
32
33 cmake_minimum_required(VERSION 3.10)
34
35 list(APPEND CMAKE_PREFIX_PATH $ENV{KIM_API_CMAKE_PREFIX_DIR})
36 find_package(KIM-API-ITEMS 2.2 REQUIRED CONFIG)
37
38 kim_api_items_setup_before_project(ITEM_TYPE "modelDriver")
39 project(ex_model_driver_P_Morse LANGUAGES C)
40 kim_api_items_setup_after_project(ITEM_TYPE "modelDriver")
41
42 add_kim_api_model_driver_library(
43 NAME ${PROJECT_NAME}
44 CREATE_ROUTINE_NAME "model_driver_create"
45 CREATE_ROUTINE_LANGUAGE "c"
46 )
47
48 target_sources(${PROJECT_NAME} PRIVATE ${PROJECT_NAME}.c)