-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (23 loc) · 1014 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
cmake_minimum_required(VERSION 3.5)
project(external_memory_fractal_tree)
message(STATUS "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
# include tlx, foxxll, stxxl
add_subdirectory(extlibs/stxxl/)
include_directories(extlibs/stxxl/include/)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${STXXL_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W -Wall -Wextra -Wpedantic -ftemplate-depth=10000")
# enable CXX STANDARD
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# gtest
add_subdirectory(extlibs/googletest)
add_subdirectory(tests)
# benchmark
add_subdirectory(extlibs/benchmark)
add_executable(benchmark-example benchmarks/benchmark_example.cpp)
target_link_libraries(benchmark-example benchmark::benchmark)
add_executable(benchmark-all benchmarks/benchmark_all.cpp)
target_link_libraries(benchmark-all ${STXXL_LIBRARIES})
# executables
add_executable(run-fractal-tree run-fractal-tree.cpp include/fractal_tree/fractal_tree_cache.h)
target_link_libraries(run-fractal-tree ${STXXL_LIBRARIES})