You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
add_library(
|
|
|
|
base STATIC
|
|
|
|
../config.h.in
|
|
|
|
auto_pid.cc
|
|
|
|
date_time_scanner.cc
|
|
|
|
fs_util.cc
|
|
|
|
humanize.cc
|
|
|
|
humanize.network.cc
|
|
|
|
humanize.time.cc
|
|
|
|
intern_string.cc
|
|
|
|
is_utf8.cc
|
|
|
|
isc.cc
|
|
|
|
lnav.gzip.cc
|
|
|
|
lnav_log.cc
|
|
|
|
network.tcp.cc
|
|
|
|
paths.cc
|
|
|
|
string_util.cc
|
|
|
|
strnatcmp.c
|
|
|
|
time_util.cc
|
|
|
|
auto_fd.hh
|
|
|
|
auto_pid.hh
|
|
|
|
date_time_scanner.hh
|
|
|
|
enum_util.hh
|
|
|
|
fs_util.hh
|
|
|
|
func_util.hh
|
|
|
|
future_util.hh
|
|
|
|
humanize.hh
|
|
|
|
humanize.network.hh
|
|
|
|
humanize.time.hh
|
|
|
|
injector.hh
|
|
|
|
injector.bind.hh
|
|
|
|
intern_string.hh
|
|
|
|
is_utf8.hh
|
|
|
|
isc.hh
|
|
|
|
lrucache.hpp
|
|
|
|
math_util.hh
|
|
|
|
network.tcp.hh
|
|
|
|
paths.hh
|
|
|
|
result.h
|
|
|
|
strnatcmp.h
|
|
|
|
time_util.hh)
|
|
|
|
|
|
|
|
target_include_directories(base PUBLIC . .. ../fmtlib ../third-party
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/..)
|
|
|
|
target_link_libraries(base cppfmt pcre::libpcre ncurses::libcurses pthread)
|
|
|
|
|
|
|
|
add_executable(
|
|
|
|
test_base
|
|
|
|
humanize.file_size.tests.cc
|
|
|
|
humanize.network.tests.cc
|
|
|
|
humanize.time.tests.cc
|
|
|
|
intern_string.tests.cc
|
|
|
|
lnav.gzip.tests.cc
|
|
|
|
string_util.tests.cc
|
|
|
|
network.tcp.tests.cc
|
|
|
|
test_base.cc)
|
|
|
|
target_include_directories(test_base PUBLIC ../third-party/doctest-root)
|
|
|
|
target_link_libraries(test_base base pcrepp ZLIB::ZLIB)
|
|
|
|
add_test(NAME test_base COMMAND test_base)
|