blob: e87988bd7cf75f70ba80c1b3e2e9257158028426 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
set(REX_SRC
common.c
pcre2/lpcre2.c
pcre2/lpcre2_f.c
)
add_library(lrexlib STATIC ${REX_SRC})
target_link_libraries(lrexlib PRIVATE
${LUA_LIBRARIES}
$<IF:$<CONFIG:Debug>,${PCRE2_DEBUG_LIBRARIES},${PCRE2_LIBRARIES}>
)
target_include_directories(lrexlib SYSTEM PRIVATE
${CMAKE_SOURCE_DIR}/epan
${LUA_INCLUDE_DIRS}
${PCRE2_INCLUDE_DIRS}
)
add_dependencies(lrexlib register_wslua)
if(FETCH_lua)
add_dependencies(lrexlib lua54)
endif()
add_compile_definitions(
VERSION=\"2.9.2\"
PCRE2_CODE_UNIT_WIDTH=8
)
|