-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
47 lines (34 loc) · 887 Bytes
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
cmake_minimum_required(VERSION 3.19)
project(src/lib/MultipoleMadelung)
enable_language(CXX Fortran C)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_C_STANDARD 11)
#
# Google tests
#
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/609281088cfefc76f9d0ce82e1ff6c30cc3591e5.zip
)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
#
#
#
FetchContent_Declare(
yaml-cpp
GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git
GIT_TAG 0579ae3d976091d7d664aa9d2527e0d0cff25763
)
FetchContent_MakeAvailable(yaml-cpp)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/config.yaml
DESTINATION ${CMAKE_BINARY_DIR}/bin/)
add_subdirectory(src)
add_subdirectory(reference)
#
# Tests
#
# N. B. has to be at the top level
enable_testing()
add_subdirectory(tests)