Sync to trunk revision 63922.
[reactos.git] / dll / 3rdparty / libxslt / CMakeLists.txt
1
2 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/libxslt
3 ${REACTOS_SOURCE_DIR}/lib/3rdparty/libwin-iconv)
4
5 add_definitions(
6 -DHAVE_CONFIG_H
7 -DWIN32
8 -D_WINDOWS
9 -D_MBCS
10 -DHAVE_STAT
11 -DHAVE_WIN32_THREADS
12 -D_REENTRANT
13 -D_WINSOCKAPI_
14 -DLIBXML_STATIC)
15
16 list(APPEND SOURCE
17 attributes.c
18 attrvt.c
19 documents.c
20 extensions.c
21 extra.c
22 functions.c
23 imports.c
24 keys.c
25 namespaces.c
26 numbers.c
27 pattern.c
28 preproc.c
29 security.c
30 templates.c
31 transform.c
32 variables.c
33 xslt.c
34 xsltlocale.c
35 xsltutils.c
36 precomp.h)
37
38 add_library(libxslt SHARED ${SOURCE})
39 set_module_type(libxslt win32dll)
40 target_link_libraries(libxslt libxml2 iconv-static zlib)
41 add_importlibs(libxslt msvcrt ws2_32 kernel32)
42 if(MSVC)
43 add_importlibs(libxslt ntdll)
44 endif()
45
46 add_dependencies(libxslt psdk)
47 add_pch(libxslt precomp.h SOURCE)
48 add_cd_file(TARGET libxslt DESTINATION reactos/system32 FOR all)
49
50 if(NOT MSVC)
51 add_target_compile_flags(libxslt "-Wno-pointer-sign -Wno-unused-but-set-variable -Wno-unused-function")
52 endif()