-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
26 lines (18 loc) · 778 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
26 lines (18 loc) · 778 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
cmake_minimum_required(VERSION 2.8)
project(Scientist)
include_directories("include/")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
# Tests
set(BUILD_GTEST ON)
add_subdirectory(test/googletest)
enable_testing()
include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})
set(TEST_SOURCES test/ignore.cc test/publish.cc test/experiment.cc test/compare.cc test/run_if.cc test/cleanup.cc test/context.cc test/before_run.cc test/multiple_candidates.cc)
add_executable(tests ${TEST_SOURCES})
target_link_libraries(tests gtest gtest_main)
add_test(all_tests tests)
# Benchmarks
add_subdirectory(benchmark/benchmark)
include_directories(benchmark/benchmark/include)
add_executable(benchmarks benchmark/benchmark.cc)
target_link_libraries(benchmarks benchmark)