From 31bab5225f493cd95086143fee2b4e9cbcfc09dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Tue, 19 Mar 2019 14:33:44 +0000 Subject: [PATCH] Initial CMakeLists.txt Former-commit-id: a5ddf172f707e94cb7d823750ff0e2bb0524e432 --- CMakeLists.txt | 17 +++++++++++++++++ qpms/CMakeLists.txt | 4 ++++ 2 files changed, 21 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 qpms/CMakeLists.txt 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})