1
1
include_directories ( . linux )
2
- link_libraries (simdjson simdjson-flags simdjson-windows-headers test -data)
2
+ link_libraries (simdjson-windows-headers test -data)
3
+
4
+
5
+ if (TARGET benchmark::benchmark)
6
+ add_executable (bench_sax bench_sax.cpp)
7
+ target_link_libraries (bench_sax simdjson-internal -flags simdjson-include -source benchmark::benchmark)
8
+ endif (TARGET benchmark::benchmark)
9
+
10
+ link_libraries (simdjson simdjson-flags )
3
11
add_executable (benchfeatures benchfeatures.cpp)
4
12
add_executable (get_corpus_benchmark get_corpus_benchmark.cpp)
5
13
add_executable (perfdiff perfdiff.cpp)
@@ -14,12 +22,6 @@ target_compile_definitions(parse_nonumberparsing PRIVATE SIMDJSON_SKIPNUMBERPARS
14
22
add_executable (parse_nostringparsing parse.cpp)
15
23
target_compile_definitions (parse_nostringparsing PRIVATE SIMDJSON_SKIPSTRINGPARSING)
16
24
17
- if (TARGET benchmark::benchmark)
18
- link_libraries (benchmark::benchmark)
19
- add_executable (bench_parse_call bench_parse_call.cpp)
20
- add_executable (bench_dom_api bench_dom_api.cpp)
21
- endif ()
22
-
23
25
if (TARGET competition-all )
24
26
add_executable (distinctuseridcompetition distinctuseridcompetition.cpp)
25
27
target_link_libraries (distinctuseridcompetition competition-core)
@@ -34,4 +36,10 @@ if (TARGET competition-all)
34
36
target_compile_definitions (allparsingcompetition PRIVATE ALLPARSER)
35
37
endif ()
36
38
39
+ if (TARGET benchmark::benchmark)
40
+ link_libraries (benchmark::benchmark)
41
+ add_executable (bench_parse_call bench_parse_call.cpp)
42
+ add_executable (bench_dom_api bench_dom_api.cpp)
43
+ endif ()
44
+
37
45
include (checkperf.cmake)
0 commit comments