FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpp-btree/CMakeLists.txt at master · algorithm-ninja/cpp-btree · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
algorithm-ninja
/
cpp-btree
Public archive
Notifications
You must be signed in to change notification settings
Fork
28
Star
80
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
cpp-btree
/
CMakeLists.txt
Copy path
More file actions
More file actions
Latest commit
History
History
History
40 lines (35 loc) · 1.56 KB
Breadcrumbs
cpp-btree
/
CMakeLists.txt
Copy path
File metadata and controls
40 lines (35 loc) · 1.56 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
Copyright 2013 Google Inc. All Rights Reserved.
#
#
Licensed under the Apache License, Version 2.0 (the "License");
#
you may not use this file except in compliance with the License.
#
You may obtain a copy of the License at
#
#
http://www.apache.org/licenses/LICENSE-2.0
#
#
Unless required by applicable law or agreed to in writing, software
#
distributed under the License is distributed on an "AS IS" BASIS,
#
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
See the License for the specific language governing permissions and
#
limitations under the License.
cmake_minimum_required
(
VERSION
2.6
)
project
(cppbtree
CXX
)
option
(
build_tests
"Build B-tree tests"
OFF
)
add_definitions
(
-std=c++11
)
set
(
CMAKE_CXX_FLAGS
"-g -O2"
)
#
CMake doesn't have a way to pure template library,
#
add_library(cppbtree btree.h btree_map.h btree_set.h
#
safe_btree.h safe_btree_map.h safe_btree_set.h)
#
set_target_properties(cppbtree PROPERTIES LINKER_LANGUAGE CXX)
if
(build_tests)
enable_testing
()
include_directories
(
$ENV{GTEST_ROOT}
/include
)
link_directories
(
$ENV{GTEST_ROOT}
)
include_directories
(
$ENV{GFLAGS_ROOT}
/include
)
link_directories
(
$ENV{GFLAGS_ROOT}
/lib
)
add_executable
(
btree_test
btree_test.cc
btree_test_flags.cc
)
add_executable
(
safe_btree_test
safe_btree_test.cc
btree_test_flags.cc
)
add_executable
(
btree_bench
btree_bench.cc
btree_test_flags.cc
)
target_link_libraries
(
btree_test
gtest_main
gtest
gflags
)
target_link_libraries
(
safe_btree_test
gtest_main
gtest
gflags
)
target_link_libraries
(
btree_bench
gflags
gtest
)
endif
()
Back
|
FazBrowse Home
|
New Git URL