[FREELDR] Allow Freeloader to boot Vista revamp of PR #1905 (#6479)
[reactos.git] / dll / win32 / xmllite / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
4 spec2def(xmllite.dll xmllite.spec ADD_IMPORTLIB)
5
6 list(APPEND SOURCE
7 reader.c
8 writer.c
9 xmllite_main.c
10 precomp.h
11 ${CMAKE_CURRENT_BINARY_DIR}/xmllite_stubs.c)
12
13 add_library(xmllite MODULE
14 ${SOURCE}
15 guid.c
16 ${CMAKE_CURRENT_BINARY_DIR}/xmllite.def)
17
18 if(MSVC)
19 # Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
20 target_compile_options(xmllite PRIVATE /wd4146)
21 endif()
22
23 set_module_type(xmllite win32dll)
24 target_link_libraries(xmllite uuid wine)
25 add_importlibs(xmllite msvcrt kernel32 ntdll)
26 add_pch(xmllite precomp.h SOURCE)
27 add_cd_file(TARGET xmllite DESTINATION reactos/system32 FOR all)