forked from apolukhin/course-nimble_cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
47 lines (38 loc) · 1.1 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
cmake_minimum_required(VERSION 2.8)
if (CMAKE_VERSION VERSION_LESS "3.1")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set (CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
endif ()
else ()
set (CMAKE_CXX_STANDARD 11)
endif ()
option (CMAKE_SUPPRESS_REGENERATION "Suppress the cmake macro that causes regeneration of build scripts during build" ON)
SET(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "Do not build benchmark tests" FORCE)
SET(BENCHMARK_ENABLE_GTEST_TESTS OFF CACHE BOOL "Do not use GTest for benchmark tests" FORCE)
add_subdirectory(benchmark)
include_directories(benchmark/include/benchmark)
include_directories(boost_container)
project(cpp_fast)
add_executable(${PROJECT_NAME}
0_conf.hpp
algorithm_1.hpp
algorithm_2.hpp
algorithm_3.hpp
algorithm_4.hpp
algorithm_5.hpp
algorithm_6.hpp
algorithm_x.hpp
container_1.hpp
container_2.hpp
container_3.hpp
container_4.hpp
container_5.hpp
container_6.hpp
container_7.hpp
mt_1.hpp
mt_2.hpp
mt_3.hpp
util.hpp
x_start.cpp
)
target_link_libraries(${PROJECT_NAME} benchmark)