-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (23 loc) · 870 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
cmake_minimum_required (VERSION 3.7)
project (ACFTE)
# set the root prefix of the library dependencies
set(EXTERNAL_ROOT $ENV{HOME}/deploy)
# some global compiler flags
add_definitions(-O2 -Wall -D__BENCHMARK -D__ASSERT -D__INFO)
# Now set up the libraries
# -----------------------------------------------------------------------------------
# the elegant way to set up boost
set(BOOST_ROOT ${EXTERNAL_ROOT})
set(Boost_FIND_REQUIRED True)
find_package(Boost 1.60 COMPONENTS thread mpi)
include_directories(${Boost_INCLUDE_DIR})
# set up OpenSSL
find_package(OpenSSL)
include_directories(${OPENSSL_INCLUDE_DIR})
# set up MPI
find_package(MPI)
include_directories(${MPI_CXX_INCLUDE_PATH})
# -----------------------------------------------------------------------------------
include_directories(${ACFTE_SOURCE_DIR})
add_subdirectory (lib)
add_subdirectory (test)