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