8b824e0461868b030976a714da3678a80181cbfb
[alexxy/gromacs.git] / src / api / CMakeLists.txt
1 #
2 # This file is part of the GROMACS molecular simulation package.
3 #
4 # Copyright (c) 2018,2019,2020, by the GROMACS development team, led by
5 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
6 # and including many others, as listed in the AUTHORS file in the
7 # top-level source directory and at http://www.gromacs.org.
8 #
9 # GROMACS is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU Lesser General Public License
11 # as published by the Free Software Foundation; either version 2.1
12 # of the License, or (at your option) any later version.
13 #
14 # GROMACS is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 # Lesser General Public License for more details.
18 #
19 # You should have received a copy of the GNU Lesser General Public
20 # License along with GROMACS; if not, see
21 # http://www.gnu.org/licenses, or write to the Free Software Foundation,
22 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
23 #
24 # If you want to redistribute modifications to GROMACS, please
25 # consider that scientific software is very special. Version
26 # control is crucial - bugs must be traceable. We will be happy to
27 # consider code for inclusion in the official distribution, but
28 # derived work must not be called official GROMACS. Details are found
29 # in the README & COPYING files - if they are missing, get the
30 # official version at http://www.gromacs.org.
31 #
32 # To help us fund GROMACS development, we humbly ask that you cite
33 # the research papers on the package. Check out http://www.gromacs.org.
34
35 # Note: GROMACS releases have a single-integer monotonic version in GMX_API_VERSION
36 # and LIBRARY_VERSION annotates the shared object for libgromacs. GMXAPI versioning
37 # is not synchronized to releases and may increment faster or slower.
38 #
39 # Prior to 0.1, GMXAPI patch levels are used to mark short term development cycles
40 # and allow compatibility checks for client software of the early releases.
41 #
42 # gmxapi 0.2 will be the first release candidate for gmxapi 1.0 and will attempt
43 # to establish compatibility guarantees consistent with semantic versioning.
44 # (https://semver.org). When the API is deemed suitably stable, gmxapi 1.0 should
45 # be tagged. Official GROMACS releases should be mappable to a distinct gmxapi
46 # release string. For roadmap details, see https://redmine.gromacs.org/issues/2585
47 set(GMXAPI_MAJOR 0)
48 set(GMXAPI_MINOR 1)
49 set(GMXAPI_PATCH 0)
50 set(GMXAPI_RELEASE ${GMXAPI_MAJOR}.${GMXAPI_MINOR}.${GMXAPI_PATCH})
51
52 ###############################
53 # New public C++ API components
54 ###############################
55
56 # Define a list of the public headers to be installed and documented. Use
57 # absolute paths in the build tree. Path component before `gmxapi` can be
58 # stripped as appropriate by consumers of this list.
59 set(GMXAPI_PUBLIC_HEADERS
60     ${CMAKE_CURRENT_SOURCE_DIR}/cpp/include/gmxapi/context.h
61     ${CMAKE_CURRENT_SOURCE_DIR}/cpp/include/gmxapi/exceptions.h
62     ${CMAKE_CURRENT_SOURCE_DIR}/cpp/include/gmxapi/gmxapi.h
63     ${CMAKE_CURRENT_SOURCE_DIR}/cpp/include/gmxapi/gmxapicompat.h
64     ${CMAKE_CURRENT_SOURCE_DIR}/cpp/include/gmxapi/gromacsfwd.h
65     ${CMAKE_CURRENT_SOURCE_DIR}/cpp/include/gmxapi/md.h
66     ${CMAKE_CURRENT_SOURCE_DIR}/cpp/include/gmxapi/session.h
67     ${CMAKE_CURRENT_SOURCE_DIR}/cpp/include/gmxapi/status.h
68     ${CMAKE_CURRENT_SOURCE_DIR}/cpp/include/gmxapi/system.h
69     ${CMAKE_CURRENT_BINARY_DIR}/cpp/include/gmxapi/version.h
70     ${CMAKE_CURRENT_SOURCE_DIR}/cpp/include/gmxapi/compat/mdparams.h
71     ${CMAKE_CURRENT_SOURCE_DIR}/cpp/include/gmxapi/compat/tpr.h
72     ${CMAKE_CURRENT_SOURCE_DIR}/cpp/include/gmxapi/md/mdmodule.h
73     )
74
75 add_subdirectory(cpp)
76
77 add_subdirectory(docs)