forked from evangelistalab/forte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (29 loc) · 869 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
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Forte tests
option(ENABLE_ForteTests "Enable Forte tests." ON)
## 64bit implementation
if(MAX_DET_ORB)
add_definitions(-DMAX_DET_ORB=${MAX_DET_ORB})
else()
add_definitions(-DMAX_DET_ORB=64)
endif()
if (ENABLE_ForteTests)
project (forte_tests)
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/catch2/forte/catch2/single_include
${CMAKE_SOURCE_DIR}
)
add_executable(forte_tests
tests/code/catch_amalgamated.cpp
tests/code/test_determinant.cc
tests/code/test_uint64.cc)
project (forte_benchmarks)
include_directories(${CMAKE_BINARY_DIR})
add_executable(forte_benchmarks
tests/benchmark/determinant_benchmark.cc)
endif (ENABLE_ForteTests)
# Add forte subdirectory
add_subdirectory (forte)