Updated README.md
[alexxy/gromacs-pyapi.git] / CMakeLists.txt
1 #
2 # This file is part of the GROMACS-PyAPI package.
3 #
4 # Copyright (c) 2014,2015,
5 # by Maks Koltsov <maks@omrb.pnpi.spb.ru> and
6 # by Alexey Shvetsov <alexxy@omrb.pnpi.spb.ru>
7 #
8 # GROMACS-PyAPI is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU Lesser General Public License
10 # as published by the Free Software Foundation; either version 2.1
11 # of the License, or (at your option) any later version.
12 #
13 # GROMACS-PyAPI is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 # Lesser General Public License for more details.
17 #
18 # You should have received a copy of the GNU Lesser General Public
19 # License along with GROMACS; if not, see
20 # http://www.gnu.org/licenses, or write to the Free Software Foundation,
21 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
22
23 cmake_minimum_required(VERSION 2.8.11)
24
25 list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
26
27 project(GROMACS-PyAPI)
28
29 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
30 set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
31 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
32
33 find_package(GROMACS 2016)
34
35 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
36 include_directories(${CMAKE_SOURCE_DIR}/stub_headers)
37
38 file(GLOB GROMACS_PYAPI_MISC README COPYING)
39 install(FILES ${GROMACS_PYAPI_MISC}
40         DESTINATION ${CMAKE_INSTALL_PREFIX}/share/gromacs-pyapi)
41
42 add_subdirectory(src)
43 add_subdirectory(examples)