xref: /reactos/dll/win32/msxml4/CMakeLists.txt (revision ebaf247c)
1
2remove_definitions(-D_WIN32_WINNT=0x502)
3add_definitions(-D_WIN32_WINNT=0x601)
4
5add_definitions(
6    -D__WINESRC__
7    -D_WINE
8    -DCOM_NO_WINDOWS_H)
9
10include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
11spec2def(msxml4.dll msxml4.spec)
12add_typelib(msxml4_tlb.idl)
13
14list(APPEND SOURCE
15    main.c
16    ${CMAKE_CURRENT_BINARY_DIR}/msxml4.def)
17
18add_library(msxml4 MODULE ${SOURCE} rsrc.rc)
19set_module_type(msxml4 win32dll)
20set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/msxml4_tlb.tlb)
21target_link_libraries(msxml4 wine)
22add_importlibs(msxml4 msxml3 msvcrt kernel32)
23add_dependencies(msxml4 stdole2)
24add_cd_file(TARGET msxml4 DESTINATION reactos/system32 FOR all)
25