diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:01:36 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:01:36 +0000 |
commit | 62e4c68907d8d33709c2c1f92a161dff00b3d5f2 (patch) | |
tree | adbbaf3acf88ea08f6eeec4b75ee98ad3b07fbdc /src/yajlpp/CMakeLists.txt | |
parent | Initial commit. (diff) | |
download | lnav-upstream/0.11.2.tar.xz lnav-upstream/0.11.2.zip |
Adding upstream version 0.11.2.upstream/0.11.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/yajlpp/CMakeLists.txt')
-rw-r--r-- | src/yajlpp/CMakeLists.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/yajlpp/CMakeLists.txt b/src/yajlpp/CMakeLists.txt new file mode 100644 index 0000000..73168ba --- /dev/null +++ b/src/yajlpp/CMakeLists.txt @@ -0,0 +1,27 @@ +add_library( + yajlpp STATIC + ../config.h.in + json_op.hh + json_ptr.hh + yajlpp.hh + yajlpp_def.hh + + json_op.cc + json_ptr.cc + yajlpp.cc +) + +target_include_directories(yajlpp PUBLIC . .. ../fmtlib + ${CMAKE_CURRENT_BINARY_DIR}/..) +target_link_libraries(yajlpp pcrepp yajl ncurses::libcurses) + +add_executable(test_yajlpp test_yajlpp.cc) +target_link_libraries(test_yajlpp yajlpp base ${lnav_LIBS}) +add_test(NAME test_yajlpp COMMAND test_yajlpp) + +add_executable(test_json_ptr test_json_ptr.cc) +target_link_libraries(test_json_ptr yajlpp base ${lnav_LIBS}) +add_test(NAME test_json_ptr COMMAND test_json_ptr) + +add_executable(drive_json_op drive_json_op.cc) +target_link_libraries(drive_json_op base yajlpp ${lnav_LIBS}) |