forked from kamailio/kamailio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
file(GLOB MODULE_SOURCES "*.c") | ||
|
||
add_library(${module_name} SHARED ${MODULE_SOURCES}) | ||
|
||
find_package(pcre2 QUIET) | ||
if(NOT pcre2_FOUND) | ||
message(STATUS "PCRE2 library not found... looking with pkg-config") | ||
find_package(PkgConfig REQUIRED) | ||
# TODO: verify we want 8-bit libpcre2 | ||
pkg_check_modules(pcre2 REQUIRED IMPORTED_TARGET libpcre2-8) | ||
add_library(PCRE2::8BIT ALIAS PkgConfig::pcre2) | ||
endif() | ||
|
||
target_link_libraries(${module_name} PRIVATE PCRE2::8BIT) |