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