[XMLLITE]: Sync with Wine 1.5.19.
[reactos.git] / reactos / dll / win32 / xmllite / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
4
5 spec2def(xmllite.dll xmllite.spec ADD_IMPORTLIB)
6
7 list(APPEND SOURCE
8 reader.c
9 writer.c
10 xmllite_main.c
11 #${REACTOS_BINARY_DIR}/include/psdk/xmllite_i.c
12 ${CMAKE_CURRENT_BINARY_DIR}/xmllite_stubs.c
13 ${CMAKE_CURRENT_BINARY_DIR}/xmllite.def)
14
15 if(NOT MSVC)
16 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
17 #allow_warnings(xmllite)
18 set_source_files_properties(reader.c PROPERTIES COMPILE_FLAGS "-Wno-error")
19 endif()
20
21 add_library(xmllite SHARED ${SOURCE})
22 set_module_type(xmllite win32dll)
23 target_link_libraries(xmllite wine uuid)
24 add_importlibs(xmllite msvcrt kernel32 ntdll)
25 add_cd_file(TARGET xmllite DESTINATION reactos/system32 FOR all)