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.
17 lines
508 B
CMake
17 lines
508 B
CMake
add_library(pcrepp STATIC
|
|
../config.h.in
|
|
pcre2pp.hh
|
|
pcre2pp.cc)
|
|
|
|
target_include_directories(pcrepp PUBLIC . .. ../third-party/scnlib/include
|
|
${CMAKE_CURRENT_BINARY_DIR}/..)
|
|
target_link_libraries(pcrepp cppfmt pcre::libpcre pcre2::pcre2)
|
|
|
|
add_executable(test_pcre2pp test_pcre2pp.cc)
|
|
target_include_directories(
|
|
test_pcre2pp
|
|
PUBLIC
|
|
../third-party/doctest-root)
|
|
target_link_libraries(test_pcre2pp pcrepp)
|
|
add_test(NAME test_pcre2pp COMMAND test_pcre2pp)
|