diff options
Diffstat (limited to 'src/tailer/CMakeLists.txt')
-rw-r--r-- | src/tailer/CMakeLists.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/tailer/CMakeLists.txt b/src/tailer/CMakeLists.txt new file mode 100644 index 0000000..1d1fb15 --- /dev/null +++ b/src/tailer/CMakeLists.txt @@ -0,0 +1,24 @@ +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 ZLIB::ZLIB) |