1 2remove_definitions(-D_WIN32_WINNT=0x502) 3add_definitions(-D_WIN32_WINNT=0x600) 4 5add_definitions(-D__WINESRC__) 6include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 7spec2def(mscoree.dll mscoree.spec) 8 9list(APPEND SOURCE 10 assembly.c 11 config.c 12 cordebug.c 13 corruntimehost.c 14 metadata.c 15 metahost.c 16 mscoree_main.c) 17 18list(APPEND PCH_SKIP_SOURCE 19 guid.c 20 ${CMAKE_CURRENT_BINARY_DIR}/mscoree_stubs.c) 21 22add_library(mscoree MODULE 23 ${SOURCE} 24 ${PCH_SKIP_SOURCE} 25 mscoree.rc 26 ${CMAKE_CURRENT_BINARY_DIR}/mscoree.def) 27 28set_module_type(mscoree win32dll) 29target_link_libraries(mscoree uuid wine) 30add_importlibs(mscoree dbghelp advapi32 shell32 ole32 shlwapi msvcrt kernel32 ntdll) 31add_pch(mscoree mscoree_private.h "${PCH_SKIP_SOURCE}") 32add_cd_file(TARGET mscoree DESTINATION reactos/system32 FOR all) 33