Debian Codegraph @

benchmark/CMakeLists.txt

raw
1 # Copyright (C) 2024 Sutou Kouhei <[email protected]>
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
17 pkg_check_modules(gobject gobject-2.0 REQUIRED IMPORTED_TARGET)
18 add_library(
19 grnbench SHARED lib/benchmark.c lib/benchmark.h lib/bench-reporter.c
20 lib/bench-reporter.h lib/bench-utils.c lib/bench-utils.h)
21 target_link_libraries(grnbench PkgConfig::gobject)
22
23 add_executable(bench-between-sequential bench-between-sequential.c)
24 target_link_libraries(bench-between-sequential libgroonga grnbench)
25
26 add_executable(bench-cache bench-cache.c)
27 target_link_libraries(bench-cache libgroonga grnbench)
28
29 add_executable(bench-ctx-create bench-ctx-create.c)
30 target_link_libraries(bench-ctx-create libgroonga grnbench)
31
32 add_executable(bench-distance bench-distance.c)
33 target_link_libraries(bench-distance libgroonga grnbench)
34
35 add_executable(bench-geo-distance bench-geo-distance.c)
36 target_link_libraries(bench-geo-distance libgroonga grnbench)
37
38 add_executable(bench-geo-select bench-geo-select.c)
39 target_link_libraries(bench-geo-select libgroonga grnbench)
40
41 add_executable(bench-nfkc bench-nfkc.c)
42 target_link_libraries(bench-nfkc libgroonga grnbench)
43
44 add_executable(bench-query-optimizer bench-query-optimizer.c)
45 target_link_libraries(bench-query-optimizer libgroonga grnbench)
46
47 add_executable(bench-range-select bench-range-select.c)
48 target_link_libraries(bench-range-select libgroonga grnbench)
49
50 add_executable(bench-result-set-raw bench-result-set-raw.c)
51 target_link_libraries(bench-result-set-raw libgroonga grnbench)
52
53 add_executable(bench-result-set bench-result-set.c)
54 target_link_libraries(bench-result-set libgroonga grnbench)
55
56 add_executable(bench-table-factory bench-table-factory.c)
57 target_link_libraries(bench-table-factory libgroonga grnbench)