mirror of https://github.com/tstack/lnav
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.
33 lines
818 B
CMake
33 lines
818 B
CMake
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
|
|
${CURSES_LIBRARIES}
|
|
datepp
|
|
)
|
|
|
|
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})
|