mirror of
https://github.com/3proxy/3proxy.git
synced 2026-04-12 16:00:11 +08:00
Some checks are pending
C/C++ CI / ${{ matrix.target }} (macos-15) (push) Waiting to run
C/C++ CI / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Waiting to run
C/C++ CI / ${{ matrix.target }} (ubuntu-latest) (push) Waiting to run
C/C++ CI / ${{ matrix.target }} (windows-2022) (push) Waiting to run
21 lines
516 B
CMake
21 lines
516 B
CMake
# PCREPlugin - requires PCRE2
|
|
|
|
if(NOT PCRE2_FOUND)
|
|
message(STATUS "PCREPlugin requires PCRE2, skipping")
|
|
return()
|
|
endif()
|
|
|
|
add_3proxy_plugin(PCREPlugin
|
|
SOURCES pcre_plugin.c
|
|
COMPILE_DEFINITIONS PCRE2_CODE_UNIT_WIDTH=8
|
|
)
|
|
|
|
if(TARGET PCRE2::PCRE2)
|
|
target_link_libraries(PCREPlugin PRIVATE PCRE2::PCRE2)
|
|
else()
|
|
target_link_libraries(PCREPlugin PRIVATE ${PCRE2_LIBRARIES})
|
|
if(PCRE2_INCLUDE_DIRS)
|
|
target_include_directories(PCREPlugin PRIVATE ${PCRE2_INCLUDE_DIRS})
|
|
endif()
|
|
endif()
|