Initial CMakeLists.txt

Former-commit-id: a5ddf172f707e94cb7d823750ff0e2bb0524e432
This commit is contained in:
Marek Nečada 2019-03-19 14:33:44 +00:00
parent 4475cffeba
commit 31bab5225f
2 changed files with 21 additions and 0 deletions

17
CMakeLists.txt Normal file
View File

@ -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)

4
qpms/CMakeLists.txt Normal file
View File

@ -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})