xref: /reactos/dll/win32/mapi32/CMakeLists.txt (revision 682f85ad)
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
14list(APPEND PCH_SKIP_SOURCE
15    guid.c
16    ${CMAKE_CURRENT_BINARY_DIR}/mapi32_stubs.c)
17
18add_library(mapi32 MODULE
19    ${SOURCE}
20    ${PCH_SKIP_SOURCE}
21    version.rc
22    ${CMAKE_CURRENT_BINARY_DIR}/mapi32.def)
23
24set_module_type(mapi32 win32dll)
25target_link_libraries(mapi32 uuid wine)
26add_importlibs(mapi32 shlwapi user32 advapi32 msvcrt kernel32 ntdll)
27add_pch(mapi32 precomp.h "${PCH_SKIP_SOURCE}")
28add_cd_file(TARGET mapi32 DESTINATION reactos/system32 FOR all)
29