1 2add_definitions(-D__WINESRC__) 3include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 4spec2def(mapi32.dll mapi32.spec) 5 6list(APPEND SOURCE 7 imalloc.c 8 mapi32_main.c 9 prop.c 10 sendmail.c 11 stubs.c 12 util.c 13 precomp.h) 14 15add_library(mapi32 MODULE 16 ${SOURCE} 17 guid.c 18 version.rc 19 ${CMAKE_CURRENT_BINARY_DIR}/mapi32_stubs.c 20 ${CMAKE_CURRENT_BINARY_DIR}/mapi32.def) 21 22set_module_type(mapi32 win32dll) 23target_link_libraries(mapi32 uuid wine) 24add_importlibs(mapi32 shlwapi user32 advapi32 msvcrt kernel32 ntdll) 25add_pch(mapi32 precomp.h SOURCE) 26add_cd_file(TARGET mapi32 DESTINATION reactos/system32 FOR all) 27