forked from evangelistalab/forte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
49 lines (41 loc) · 1.58 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# CMakeLists files in this project can
# refer to the root source directory of the project as ${HELLO_SOURCE_DIR} and
# to the root binary directory of the project as ${HELLO_BINARY_DIR}.
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
# project(forte
# VERSION 0.1
# LANGUAGES CXX C)
# set(forte_AUTHORS "Francesco A. Evangelista and Group")
# set(forte_DESCRIPTION "Quantum Chemistry Methods for Strongly Correlated Electrons plugin to Psi4")
# set(forte_URL "https://github.com/evangelistalab/forte")
# set(forte_LICENSE "GPL-3.0+")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# set(TargetOpenMP_FIND_COMPONENTS "CXX")
# Recurse into the "Hello" and "Demo" subdirectories. This does not actually
# cause another cmake executable to run. The same process will walk through
# the project's entire directory structure.
add_subdirectory (forte)
#
# Forte tests
#
option(ENABLE_ForteTests "Enable Forte tests." ON)
# target_include_directories(forte PRIVATE .)
## 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)
add_executable(forte_tests
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)