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