forked from robashaw/libecpint
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
33 lines (25 loc) · 1.05 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# minimum version of CMake is 3.2
cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
# define project
project( libecpint
VERSION 0.9
LANGUAGES C CXX)
# we need at least C++11
set (CMAKE_CXX_STANDARD 11)
# code generator variables
set (LIBECPINT_MAX_L "5" CACHE STRING "Maximum angular momentum")
set (LIBECPINT_MAX_UNROL "2" CACHE STRING "Maximum L for unrolling")
# configure the config header to pass the above variables to the program
configure_file (
"${PROJECT_SOURCE_DIR}/include/libecpint/config.hpp.in"
"${PROJECT_BINARY_DIR}/include/libecpint/config.hpp"
)
include_directories(${PROJECT_BINARY_DIR}/include/libecpint)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include/libecpint)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/external/Faddeeva)
add_subdirectory(src)
enable_testing()
add_subdirectory(tests)
install (DIRECTORY include/libecpint DESTINATION include)
install (FILES include/libecpint.hpp DESTINATION include)
install (FILES "${PROJECT_BINARY_DIR}/include/libecpint/config.hpp" DESTINATION include/libecpint)