mirror of
https://github.com/tstack/lnav
synced 2024-11-15 18:13:10 +00:00
c3dc668b69
Also fix time offset issue
65 lines
1.0 KiB
CMake
65 lines
1.0 KiB
CMake
|
|
add_library(
|
|
tailercommon
|
|
|
|
sha-256.c
|
|
sha-256.h
|
|
|
|
tailer.c
|
|
tailer.h
|
|
)
|
|
|
|
add_executable(
|
|
tailer
|
|
|
|
tailer.main.c
|
|
)
|
|
|
|
target_link_libraries(tailer tailercommon)
|
|
|
|
add_library(
|
|
tailerpp
|
|
|
|
tailerpp.hh
|
|
tailerpp.cc
|
|
)
|
|
target_link_libraries(tailerpp base)
|
|
|
|
add_custom_command(
|
|
OUTPUT tailerbin.h tailerbin.cc
|
|
COMMAND bin2c -n tailer_bin tailerbin tailer
|
|
DEPENDS bin2c tailer
|
|
)
|
|
|
|
add_library(
|
|
tailerservice
|
|
|
|
tailer.looper.hh
|
|
tailer.looper.cc
|
|
tailer.looper.cfg.hh
|
|
tailerbin.h
|
|
tailerbin.cc
|
|
)
|
|
target_include_directories(
|
|
tailerservice
|
|
PUBLIC
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR})
|
|
target_link_libraries(tailerservice base)
|
|
|
|
add_executable(
|
|
drive_tailer
|
|
|
|
drive_tailer.cc
|
|
)
|
|
|
|
target_include_directories(
|
|
drive_tailer
|
|
PUBLIC
|
|
.
|
|
..
|
|
../fmtlib
|
|
${CMAKE_CURRENT_BINARY_DIR}/..
|
|
)
|
|
target_link_libraries(drive_tailer base tailercommon tailerpp)
|