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