forked from crmne/lana
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
34 lines (27 loc) · 921 Bytes
/
CMakeLists.txt
File metadata and controls
34 lines (27 loc) · 921 Bytes
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
project(lana CXX)
# Required cmake version
cmake_minimum_required(VERSION 2.6)
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
# add definitions
include(DefineCMakeDefaults)
include(DefineOptions)
# disallow in-source build
include(MacroEnsureOutOfSourceBuild)
macro_ensure_out_of_source_build("${PROJECT_NAME} requires an out of source build. Please create a separate build directory and run 'cmake /path/to/${PROJECT_NAME} [options]' there.")
# search for an MPI distribution
find_package(MPI REQUIRED)
# search for the Parallel Boost Graph Library and its dependencies
find_package(Boost 1.42 REQUIRED COMPONENTS
graph_parallel
mpi
serialization
system
program_options
date_time
filesystem
${BOOST_TEST_DEPENDENCIES}
)
# check subdirectories
add_subdirectory(src)
add_subdirectory(tests)