forked from y-scope/clp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
607 lines (583 loc) · 21.2 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
cmake_minimum_required(VERSION 3.5.1)
project(CLP LANGUAGES CXX C)
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set(default_build_type "Release")
message(STATUS "No build type specified. Setting to '${default_build_type}'.")
set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE STRING "Choose the type of build." FORCE)
endif()
# Add local CMake module directory to CMake's modules path
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
# Macro providing the length of the absolute source directory path so we can create a relative (rather than absolute) __FILE__ macro
string(LENGTH "${CMAKE_SOURCE_DIR}/" SOURCE_PATH_SIZE)
add_definitions("-DSOURCE_PATH_SIZE=${SOURCE_PATH_SIZE}")
# Profiling options
add_definitions(-DPROF_ENABLED=0)
# Compile-in debug logging statements
#add_definitions(-DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_DEBUG)
# Flush to disk switch
add_definitions(-DFLUSH_TO_DISK_ENABLED=1)
# Passthrough compression switch
add_definitions(-DUSE_PASSTHROUGH_COMPRESSION=0)
# Make off_t 64-bit
add_definitions(-D_FILE_OFFSET_BITS=64)
# Ensure we're compiling for a little-endian machine (we don't support big-endian)
include(TestBigEndian)
TEST_BIG_ENDIAN(IS_BIG_ENDIAN)
if (IS_BIG_ENDIAN)
message(FATAL_ERROR "Big-endian machines are not supported")
endif()
# Detect linking mode (static or shared); Default to static.
set(CLP_USE_STATIC_LIBS ON CACHE BOOL "Whether to link against static libraries")
if(CLP_USE_STATIC_LIBS)
set(CLP_LIBS_STRING "static")
else()
set(CLP_LIBS_STRING "shared")
endif()
message(STATUS "Building using ${CLP_LIBS_STRING} libraries")
# Find and setup Boost Library
if(CLP_USE_STATIC_LIBS)
set(Boost_USE_STATIC_LIBS ON)
endif()
find_package(Boost REQUIRED iostreams program_options filesystem system)
if(Boost_FOUND)
message(STATUS "Found Boost ${Boost_VERSION}")
else()
message(FATAL_ERROR "Could not find ${CLP_LIBS_STRING} libraries for Boost")
endif()
# Find and setup fmt
# NOTE:
# - We only try to link to the static library
# - spdlog uses fmt, so their versions need to be kept in-sync
find_package(fmt 8.0.1 REQUIRED)
if(fmt_FOUND)
message(STATUS "Found fmt ${fmt_VERSION}")
else()
message(FATAL_ERROR "Could not find static libraries for fmt")
endif()
# Find and setup spdlog
# NOTE: spdlog only builds a static library
find_package(spdlog 1.9.2 REQUIRED)
# Don't use spdlog's internal fmtlib since it will conflict with the external fmtlib
add_definitions(-DSPDLOG_FMT_EXTERNAL=1)
if(spdlog_FOUND)
message(STATUS "Found spdlog ${spdlog_VERSION}")
else()
message(FATAL_ERROR "Could not find static libraries for spdlog")
endif()
# Find and setup libarchive
if(CLP_USE_STATIC_LIBS)
set(LibArchive_USE_STATIC_LIBS ON)
endif()
find_package(LibArchive REQUIRED)
if(LibArchive_FOUND)
message(STATUS "Found LibArchive ${LibArchive_VERSION}")
else()
message(FATAL_ERROR "Could not find ${CLP_LIBS_STRING} libraries for LibArchive")
endif()
# Find and setup MariaDBClient library
if(CLP_USE_STATIC_LIBS)
# NOTE: We can't statically link to MariaDBClient since it's GPL
message(AUTHOR_WARNING "MariaDBClient cannot be statically linked due to its license.")
endif()
find_package(MariaDBClient 3.1.0 REQUIRED)
if(MariaDBClient_FOUND)
message(STATUS "Found MariaDBClient ${MariaDBClient_VERSION}")
else()
message(FATAL_ERROR "Could not find ${CLP_LIBS_STRING} libraries for MariaDBClient")
endif()
# Add yaml-cpp
add_subdirectory(submodules/yaml-cpp EXCLUDE_FROM_ALL)
# Find and setup ZStd Library
if(CLP_USE_STATIC_LIBS)
set(ZStd_USE_STATIC_LIBS ON)
endif()
find_package(ZStd 1.4.4 REQUIRED)
if(ZStd_FOUND)
message(STATUS "Found ZStd ${ZStd_VERSION}")
else()
message(FATAL_ERROR "Could not find ${CLP_LIBS_STRING} libraries for ZStd")
endif()
# sqlite dependencies
set(sqlite_DYNAMIC_LIBS "dl;m;pthread")
include(cmake/Modules/FindLibraryDependencies.cmake)
FindDynamicLibraryDependencies(sqlite "${sqlite_DYNAMIC_LIBS}")
set(SOURCE_FILES_clp
src/ArrayBackedPosIntSet.cpp
src/ArrayBackedPosIntSet.hpp
src/clp/clp.cpp
src/clp/CommandLineArguments.cpp
src/clp/CommandLineArguments.hpp
src/clp/compression.cpp
src/clp/compression.hpp
src/clp/decompression.cpp
src/clp/decompression.hpp
src/clp/FileCompressor.cpp
src/clp/FileCompressor.hpp
src/clp/FileDecompressor.cpp
src/clp/FileDecompressor.hpp
src/clp/FileToCompress.cpp
src/clp/FileToCompress.hpp
src/clp/StructuredFileToCompress.cpp
src/clp/StructuredFileToCompress.hpp
src/clp/utils.cpp
src/clp/utils.hpp
src/database_utils.cpp
src/database_utils.hpp
src/Defs.h
src/dictionary_utils.cpp
src/dictionary_utils.hpp
src/DictionaryEntry.cpp
src/DictionaryEntry.hpp
src/DictionaryReader.cpp
src/DictionaryReader.hpp
src/DictionaryWriter.cpp
src/DictionaryWriter.hpp
src/EncodedVariableInterpreter.cpp
src/EncodedVariableInterpreter.hpp
src/ErrorCode.hpp
src/FileReader.cpp
src/FileReader.hpp
src/FileWriter.cpp
src/FileWriter.hpp
src/GlobalMetadataDB.cpp
src/GlobalMetadataDB.hpp
src/GlobalMetadataDBConfig.cpp
src/GlobalMetadataDBConfig.hpp
src/GlobalMySQLMetadataDB.cpp
src/GlobalMySQLMetadataDB.hpp
src/GlobalSQLiteMetadataDB.cpp
src/GlobalSQLiteMetadataDB.hpp
src/LibarchiveFileReader.cpp
src/LibarchiveFileReader.hpp
src/LibarchiveReader.cpp
src/LibarchiveReader.hpp
src/LogTypeDictionaryEntry.cpp
src/LogTypeDictionaryEntry.hpp
src/LogTypeDictionaryReader.cpp
src/LogTypeDictionaryReader.hpp
src/LogTypeDictionaryWriter.cpp
src/LogTypeDictionaryWriter.hpp
src/MessageParser.cpp
src/MessageParser.hpp
src/MySQLDB.cpp
src/MySQLDB.hpp
src/MySQLParamBindings.cpp
src/MySQLParamBindings.hpp
src/MySQLPreparedStatement.cpp
src/MySQLPreparedStatement.hpp
src/PageAllocatedVector.cpp
src/PageAllocatedVector.hpp
src/ParsedMessage.cpp
src/ParsedMessage.hpp
src/Profiler.cpp
src/Profiler.hpp
src/Query.cpp
src/Query.hpp
src/ReaderInterface.cpp
src/ReaderInterface.hpp
src/SQLiteDB.cpp
src/SQLiteDB.hpp
src/SQLitePreparedStatement.cpp
src/SQLitePreparedStatement.hpp
src/Stopwatch.cpp
src/Stopwatch.hpp
src/streaming_archive/Constants.hpp
src/streaming_archive/MetadataDB.cpp
src/streaming_archive/MetadataDB.hpp
src/streaming_archive/reader/Archive.cpp
src/streaming_archive/reader/Archive.hpp
src/streaming_archive/reader/File.cpp
src/streaming_archive/reader/File.hpp
src/streaming_archive/reader/Message.cpp
src/streaming_archive/reader/Message.hpp
src/streaming_archive/reader/Segment.cpp
src/streaming_archive/reader/Segment.hpp
src/streaming_archive/reader/SegmentManager.cpp
src/streaming_archive/reader/SegmentManager.hpp
src/streaming_archive/writer/Archive.cpp
src/streaming_archive/writer/Archive.hpp
src/streaming_archive/writer/File.cpp
src/streaming_archive/writer/File.hpp
src/streaming_archive/writer/Segment.cpp
src/streaming_archive/writer/Segment.hpp
src/streaming_compression/Compressor.cpp
src/streaming_compression/Compressor.hpp
src/streaming_compression/Constants.hpp
src/streaming_compression/Decompressor.cpp
src/streaming_compression/Decompressor.hpp
src/streaming_compression/passthrough/Compressor.cpp
src/streaming_compression/passthrough/Compressor.hpp
src/streaming_compression/passthrough/Decompressor.cpp
src/streaming_compression/passthrough/Decompressor.hpp
src/streaming_compression/zstd/Compressor.cpp
src/streaming_compression/zstd/Compressor.hpp
src/streaming_compression/zstd/Constants.hpp
src/streaming_compression/zstd/Decompressor.cpp
src/streaming_compression/zstd/Decompressor.hpp
src/TimestampPattern.cpp
src/TimestampPattern.hpp
src/TraceableException.cpp
src/TraceableException.hpp
src/Utils.cpp
src/Utils.hpp
src/VariableDictionaryEntry.cpp
src/VariableDictionaryEntry.hpp
src/VariableDictionaryReader.cpp
src/VariableDictionaryReader.hpp
src/VariableDictionaryWriter.cpp
src/VariableDictionaryWriter.hpp
src/version.hpp
src/WriterInterface.cpp
src/WriterInterface.hpp
submodules/date/include/date/date.h
submodules/json/single_include/nlohmann/json.hpp
submodules/sqlite3/sqlite3.c
submodules/sqlite3/sqlite3.h
)
add_executable(clp ${SOURCE_FILES_clp})
target_link_libraries(clp
PRIVATE
Boost::filesystem Boost::iostreams Boost::program_options
fmt::fmt
spdlog::spdlog
${sqlite_LIBRARY_DEPENDENCIES}
LibArchive::LibArchive
MariaDBClient::MariaDBClient
yaml-cpp::yaml-cpp
ZStd::ZStd
)
target_compile_features(clp
PRIVATE cxx_std_14
)
set(SOURCE_FILES_clg
src/clg/clg.cpp
src/clg/CommandLineArguments.cpp
src/clg/CommandLineArguments.hpp
src/database_utils.cpp
src/database_utils.hpp
src/Defs.h
src/dictionary_utils.cpp
src/dictionary_utils.hpp
src/DictionaryEntry.cpp
src/DictionaryEntry.hpp
src/DictionaryReader.cpp
src/DictionaryReader.hpp
src/EncodedVariableInterpreter.cpp
src/EncodedVariableInterpreter.hpp
src/ErrorCode.hpp
src/FileReader.cpp
src/FileReader.hpp
src/FileWriter.cpp
src/FileWriter.hpp
src/GlobalMetadataDB.cpp
src/GlobalMetadataDB.hpp
src/GlobalMetadataDBConfig.cpp
src/GlobalMetadataDBConfig.hpp
src/GlobalMySQLMetadataDB.cpp
src/GlobalMySQLMetadataDB.hpp
src/GlobalSQLiteMetadataDB.cpp
src/GlobalSQLiteMetadataDB.hpp
src/Grep.cpp
src/Grep.hpp
src/LogTypeDictionaryEntry.cpp
src/LogTypeDictionaryEntry.hpp
src/LogTypeDictionaryReader.cpp
src/LogTypeDictionaryReader.hpp
src/MySQLDB.cpp
src/MySQLDB.hpp
src/MySQLParamBindings.cpp
src/MySQLParamBindings.hpp
src/MySQLPreparedStatement.cpp
src/MySQLPreparedStatement.hpp
src/PageAllocatedVector.cpp
src/PageAllocatedVector.hpp
src/ParsedMessage.cpp
src/ParsedMessage.hpp
src/Profiler.cpp
src/Profiler.hpp
src/Query.cpp
src/Query.hpp
src/ReaderInterface.cpp
src/ReaderInterface.hpp
src/SQLiteDB.cpp
src/SQLiteDB.hpp
src/SQLitePreparedStatement.cpp
src/SQLitePreparedStatement.hpp
src/Stopwatch.cpp
src/Stopwatch.hpp
src/streaming_archive/Constants.hpp
src/streaming_archive/MetadataDB.cpp
src/streaming_archive/MetadataDB.hpp
src/streaming_archive/reader/Archive.cpp
src/streaming_archive/reader/Archive.hpp
src/streaming_archive/reader/File.cpp
src/streaming_archive/reader/File.hpp
src/streaming_archive/reader/Message.cpp
src/streaming_archive/reader/Message.hpp
src/streaming_archive/reader/Segment.cpp
src/streaming_archive/reader/Segment.hpp
src/streaming_archive/reader/SegmentManager.cpp
src/streaming_archive/reader/SegmentManager.hpp
src/streaming_archive/writer/File.cpp
src/streaming_archive/writer/File.hpp
src/streaming_archive/writer/Segment.cpp
src/streaming_archive/writer/Segment.hpp
src/streaming_compression/Constants.hpp
src/streaming_compression/Decompressor.cpp
src/streaming_compression/Decompressor.hpp
src/streaming_compression/passthrough/Compressor.cpp
src/streaming_compression/passthrough/Compressor.hpp
src/streaming_compression/passthrough/Decompressor.cpp
src/streaming_compression/passthrough/Decompressor.hpp
src/streaming_compression/zstd/Compressor.cpp
src/streaming_compression/zstd/Compressor.hpp
src/streaming_compression/zstd/Constants.hpp
src/streaming_compression/zstd/Decompressor.cpp
src/streaming_compression/zstd/Decompressor.hpp
src/TimestampPattern.cpp
src/TimestampPattern.hpp
src/TraceableException.cpp
src/TraceableException.hpp
src/Utils.cpp
src/Utils.hpp
src/VariableDictionaryEntry.cpp
src/VariableDictionaryEntry.hpp
src/VariableDictionaryReader.cpp
src/VariableDictionaryReader.hpp
src/VariableDictionaryWriter.cpp
src/VariableDictionaryWriter.hpp
src/version.hpp
src/WriterInterface.cpp
src/WriterInterface.hpp
submodules/date/include/date/date.h
submodules/sqlite3/sqlite3.c
submodules/sqlite3/sqlite3.h
submodules/sqlite3/sqlite3ext.h
)
add_executable(clg ${SOURCE_FILES_clg})
target_link_libraries(clg
PRIVATE
Boost::filesystem Boost::iostreams Boost::program_options
fmt::fmt
MariaDBClient::MariaDBClient
spdlog::spdlog
${sqlite_LIBRARY_DEPENDENCIES}
yaml-cpp::yaml-cpp
ZStd::ZStd
)
target_compile_features(clg
PRIVATE cxx_std_14
)
set(SOURCE_FILES_clo
src/clo/clo.cpp
src/clo/CommandLineArguments.cpp
src/clo/CommandLineArguments.hpp
src/database_utils.cpp
src/database_utils.hpp
src/Defs.h
src/dictionary_utils.cpp
src/dictionary_utils.hpp
src/DictionaryEntry.cpp
src/DictionaryEntry.hpp
src/DictionaryReader.cpp
src/DictionaryReader.hpp
src/EncodedVariableInterpreter.cpp
src/EncodedVariableInterpreter.hpp
src/ErrorCode.hpp
src/FileReader.cpp
src/FileReader.hpp
src/FileWriter.cpp
src/FileWriter.hpp
src/Grep.cpp
src/Grep.hpp
src/LogTypeDictionaryEntry.cpp
src/LogTypeDictionaryEntry.hpp
src/LogTypeDictionaryReader.cpp
src/LogTypeDictionaryReader.hpp
src/PageAllocatedVector.cpp
src/PageAllocatedVector.hpp
src/ParsedMessage.cpp
src/ParsedMessage.hpp
src/Profiler.cpp
src/Profiler.hpp
src/Query.cpp
src/Query.hpp
src/ReaderInterface.cpp
src/ReaderInterface.hpp
src/SQLiteDB.cpp
src/SQLiteDB.hpp
src/SQLitePreparedStatement.cpp
src/SQLitePreparedStatement.hpp
src/Stopwatch.cpp
src/Stopwatch.hpp
src/streaming_archive/Constants.hpp
src/streaming_archive/MetadataDB.cpp
src/streaming_archive/MetadataDB.hpp
src/streaming_archive/reader/Archive.cpp
src/streaming_archive/reader/Archive.hpp
src/streaming_archive/reader/File.cpp
src/streaming_archive/reader/File.hpp
src/streaming_archive/reader/Message.cpp
src/streaming_archive/reader/Message.hpp
src/streaming_archive/reader/Segment.cpp
src/streaming_archive/reader/Segment.hpp
src/streaming_archive/reader/SegmentManager.cpp
src/streaming_archive/reader/SegmentManager.hpp
src/streaming_archive/writer/File.cpp
src/streaming_archive/writer/File.hpp
src/streaming_archive/writer/Segment.cpp
src/streaming_archive/writer/Segment.hpp
src/streaming_compression/Constants.hpp
src/streaming_compression/Decompressor.cpp
src/streaming_compression/Decompressor.hpp
src/streaming_compression/passthrough/Compressor.cpp
src/streaming_compression/passthrough/Compressor.hpp
src/streaming_compression/passthrough/Decompressor.cpp
src/streaming_compression/passthrough/Decompressor.hpp
src/streaming_compression/zstd/Compressor.cpp
src/streaming_compression/zstd/Compressor.hpp
src/streaming_compression/zstd/Constants.hpp
src/streaming_compression/zstd/Decompressor.cpp
src/streaming_compression/zstd/Decompressor.hpp
src/TimestampPattern.cpp
src/TimestampPattern.hpp
src/TraceableException.cpp
src/TraceableException.hpp
src/Utils.cpp
src/Utils.hpp
src/VariableDictionaryEntry.cpp
src/VariableDictionaryEntry.hpp
src/VariableDictionaryReader.cpp
src/VariableDictionaryReader.hpp
src/VariableDictionaryWriter.cpp
src/VariableDictionaryWriter.hpp
src/version.hpp
src/WriterInterface.cpp
src/WriterInterface.hpp
submodules/date/include/date/date.h
submodules/sqlite3/sqlite3.c
submodules/sqlite3/sqlite3.h
submodules/sqlite3/sqlite3ext.h
)
add_executable(clo ${SOURCE_FILES_clo})
target_link_libraries(clo
PRIVATE
Boost::filesystem Boost::iostreams Boost::program_options
fmt::fmt
spdlog::spdlog
${sqlite_LIBRARY_DEPENDENCIES}
ZStd::ZStd
)
target_compile_features(clo
PRIVATE cxx_std_14
)
set(SOURCE_FILES_unitTest
src/database_utils.cpp
src/database_utils.hpp
src/Defs.h
src/dictionary_utils.cpp
src/dictionary_utils.hpp
src/DictionaryEntry.cpp
src/DictionaryEntry.hpp
src/DictionaryReader.cpp
src/DictionaryReader.hpp
src/EncodedVariableInterpreter.cpp
src/EncodedVariableInterpreter.hpp
src/ErrorCode.hpp
src/FileReader.cpp
src/FileReader.hpp
src/FileWriter.cpp
src/FileWriter.hpp
src/GlobalMetadataDB.cpp
src/GlobalMetadataDB.hpp
src/Grep.cpp
src/Grep.hpp
src/LogTypeDictionaryEntry.cpp
src/LogTypeDictionaryEntry.hpp
src/LogTypeDictionaryReader.cpp
src/LogTypeDictionaryReader.hpp
src/LogTypeDictionaryWriter.cpp
src/LogTypeDictionaryWriter.hpp
src/ParsedMessage.cpp
src/ParsedMessage.hpp
src/Profiler.cpp
src/Profiler.hpp
src/Query.cpp
src/Query.hpp
src/ReaderInterface.cpp
src/ReaderInterface.hpp
src/SQLiteDB.cpp
src/SQLiteDB.hpp
src/SQLitePreparedStatement.cpp
src/SQLitePreparedStatement.hpp
src/Stopwatch.cpp
src/Stopwatch.hpp
src/streaming_archive/MetadataDB.cpp
src/streaming_archive/MetadataDB.hpp
src/streaming_archive/reader/Archive.cpp
src/streaming_archive/reader/Archive.hpp
src/streaming_archive/reader/File.cpp
src/streaming_archive/reader/File.hpp
src/streaming_archive/reader/Message.cpp
src/streaming_archive/reader/Message.hpp
src/streaming_archive/reader/Segment.cpp
src/streaming_archive/reader/Segment.hpp
src/streaming_archive/reader/SegmentManager.cpp
src/streaming_archive/reader/SegmentManager.hpp
src/streaming_archive/writer/File.cpp
src/streaming_archive/writer/File.hpp
src/streaming_archive/writer/Segment.cpp
src/streaming_archive/writer/Segment.hpp
src/streaming_compression/Compressor.cpp
src/streaming_compression/Compressor.hpp
src/streaming_compression/Constants.hpp
src/streaming_compression/Decompressor.cpp
src/streaming_compression/Decompressor.hpp
src/streaming_compression/passthrough/Compressor.cpp
src/streaming_compression/passthrough/Compressor.hpp
src/streaming_compression/passthrough/Decompressor.cpp
src/streaming_compression/passthrough/Decompressor.hpp
src/streaming_compression/zstd/Compressor.cpp
src/streaming_compression/zstd/Compressor.hpp
src/streaming_compression/zstd/Constants.hpp
src/streaming_compression/zstd/Decompressor.cpp
src/streaming_compression/zstd/Decompressor.hpp
src/TimestampPattern.cpp
src/TimestampPattern.hpp
src/TraceableException.cpp
src/TraceableException.hpp
src/Utils.cpp
src/Utils.hpp
src/VariableDictionaryEntry.cpp
src/VariableDictionaryEntry.hpp
src/VariableDictionaryReader.cpp
src/VariableDictionaryReader.hpp
src/VariableDictionaryWriter.cpp
src/VariableDictionaryWriter.hpp
src/WriterInterface.cpp
src/WriterInterface.hpp
submodules/Catch2/single_include/catch2/catch.hpp
submodules/date/include/date/date.h
submodules/sqlite3/sqlite3.c
submodules/sqlite3/sqlite3.h
tests/test-EncodedVariableInterpreter.cpp
tests/test-Grep.cpp
tests/test-main.cpp
tests/test-Segment.cpp
tests/test-Stopwatch.cpp
tests/test-StreamingCompression.cpp
tests/test-TimestampPattern.cpp
tests/test-Utils.cpp
)
add_executable(unitTest ${SOURCE_FILES_unitTest})
target_link_libraries(unitTest
PRIVATE
Boost::filesystem Boost::iostreams
fmt::fmt
${sqlite_LIBRARY_DEPENDENCIES}
ZStd::ZStd
)
target_compile_features(unitTest
PRIVATE cxx_std_14
)
include(cmake/utils.cmake)