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