You can not 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
497 B
17 lines
497 B
set(CMAKE_INCLUDE_CURRENT_DIR ON) |
|
set(FILTERS "") |
|
|
|
add_library("f2b_filter_preg" MODULE "preg.c" "../strlcpy.c") |
|
list(APPEND FILTERS "f2b_filter_preg") |
|
|
|
find_library(PCRE_FOUND "pcre") |
|
if (WITH_PCRE AND PCRE_FOUND) |
|
add_library("f2b_filter_pcre" MODULE "pcre.c" "../strlcpy.c") |
|
target_link_libraries("f2b_filter_pcre" "pcre") |
|
list(APPEND FILTERS "f2b_filter_pcre") |
|
endif () |
|
|
|
message(STATUS "- Filters : ${FILTERS}") |
|
|
|
install(TARGETS ${FILTERS} |
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
|