### PLUGIN
add_library(http2 src/http2_stream.cpp src/http2_plugin.cpp src/http2_common.cpp)
target_include_directories(http2 PRIVATE include/internal)
target_include_directories(http2 PUBLIC incluce/external)

target_link_libraries(http2 common)
target_link_libraries(http2 nghttp2-static)
target_link_libraries(http2 libevent-static)
target_link_libraries(http2 z)

target_link_libraries(http2 brotlienc-static brotlidec-static)

### UNITTEST CASE
add_executable(test-http2-stream test/test_http2_stream.cpp)
target_include_directories(test-http2-stream PRIVATE include/internal)
target_link_libraries(test-http2-stream gtest http2 common)

include(GoogleTest)
gtest_discover_tests(test-http2-stream)