d346123536a9c1b1fb2cb6b34da18cd75fb659a0
[WebKit-https.git] / JavaScriptCore / pcre / CMakeLists.txt
1
2 project( pcre-unity )
3
4 include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/../wtf )
5 #compile dftables.c -> dftables
6 #run dftables to generate chartables.c
7
8 add_executable(dftables dftables.c)
9
10 get_target_property(dftables_executable dftables LOCATION)
11
12 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/chartables.c
13    COMMAND ${dftables_executable} ${CMAKE_CURRENT_BINARY_DIR}/chartables.c
14    DEPENDS dftables )
15
16 set(pcre-unity_LIB_SRCS
17    ${pcre-unity_LIB_SRCS}
18    ${CMAKE_CURRENT_BINARY_DIR}/chartables.c
19    pcre_get.c
20    pcre_printint.c
21    pcre_refcount.c
22    pcre_ucp_findchar.c
23    pcre_compile.c
24    pcre_globals.c
25    pcre_config.c
26    pcre_version.c
27    pcre_info.c
28    pcre_study.c
29    pcre_exec.c
30    pcre_xclass.c
31    ucp_findchar.c
32    pcre_tables.c
33    pcre_maketables.c
34    pcre_try_flipped.c
35    pcre_ord2utf8.c
36    pcre_fullinfo.c
37    )
38
39 kde4_add_library(pcre-unity STATIC ${pcre-unity_LIB_SRCS})
40
41