diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..30a246d --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 2.6) +project (QPMS) + +macro(use_c99) + if (CMAKE_VERSION VERSION_LESS "3.1") + if (CMAKE_C_COMPILER_ID STREQUAL "GNU") + set (CMAKE_C_FLAGS "-std=gnu99 ${CMAKE_C_FLAGS}") + endif () + else () + set (CMAKE_C_STANDARD 99) + endif () +endmacro(use_c99) + +set (QPMS_VERSION_MAJOR 0) +#set (QPMS_VERSION_MINOR 3) +add_subdirectory (qpms) + diff --git a/qpms/CMakeLists.txt b/qpms/CMakeLists.txt new file mode 100644 index 0000000..b06aa55 --- /dev/null +++ b/qpms/CMakeLists.txt @@ -0,0 +1,4 @@ +add_library (qpms translations.c tmatrices.c vecprint.c vswf.c wigner.c + lattices2d.c gaunt.c error.c legendre.c symmetries.c vecprint.c) +use_c99() +target_include_directories (qpms PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})