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