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