1 cmake_minimum_required(VERSION 3.0.2)
2 include(CMakeAddFortranSubdirectory)
4 include(GNUInstallDirs)
9 if (CMAKE_VERSION VERSION_LESS "3.1")
10 if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
11 set (CMAKE_C_FLAGS "-std=gnu99 ${CMAKE_C_FLAGS}")
14 set (CMAKE_C_STANDARD 99)
18 # We need the amos libraries to be compiled with -fPIC
19 # but at the same time, we do not want to make a .so file,
20 # so distutils package it with the rest of qpms c/cython lib.
21 set(CMAKE_POSITION_INDEPENDENT_CODE ON)
23 set (QPMS_VERSION_MAJOR 0)
24 #set (QPMS_VERSION_MINOR 3)
25 cmake_add_fortran_subdirectory (amos
29 add_subdirectory (qpms)
33 add_subdirectory (tests EXCLUDE_FROM_ALL)
35 #add_subdirectory (apps/transop-ewald)