-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
45 lines (37 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
cmake_minimum_required(VERSION 3.5)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_BUILD_TYPE "Release")
project(perf_tests CXX)
find_package(benchmark CONFIG REQUIRED)
include_directories(
perf_tests
sub/vw_master/explore
sub/vw_master/vowpalwabbit
/mnt/c/git/sparsehash-c11
$CONDA_PREFIX
)
set(VW_HOME sub/vw_master/)
set(vw_source
{VW_HOME}parse_primitives.cc
{VW_HOME}vw_exception.cc
)
add_executable(perf_tests
perf_tests/main.cpp
perf_tests/exception_perf.cpp
perf_tests/struct_return.cpp
perf_tests/expected.cpp
perf_tests/unique_insert_perf.cpp
perf_tests/error_code.cpp
perf_tests/expected_perf.cpp
perf_tests/error_code_common.cpp
# perf_tests/hashmap_perf.cpp
perf_tests/string_view.cpp
sub/vw_master/vowpalwabbit/parse_primitives.cc
sub/vw_master/vowpalwabbit/vw_exception.cc
# perf_tests/exception_perf.cpp
# perf_tests/struct_return.cpp
# perf_tests/expected.cpp
# perf_tests/unique_insert_perf.cpp
)
target_link_libraries(perf_tests PRIVATE benchmark::benchmark benchmark::benchmark_main)
target_compile_options(perf_tests PUBLIC "-O3")