[SENDMAIL][INCLUDE][INF] Add sendmail.dll for DeskLink (#2092)
[reactos.git] / dll / shellext / sendmail / CMakeLists.txt
1 set_cpp(WITH_RUNTIME)
2 spec2def(sendmail.dll sendmail.spec)
3
4 add_definitions(
5 -D_WINE
6 -D_ATL_NO_EXCEPTIONS)
7
8 if(NOT MSVC)
9 # HACK: this should be enabled globally!
10 add_compile_flags_language("-std=c++11" "CXX")
11 endif()
12
13 include_directories(
14 ${REACTOS_SOURCE_DIR}/sdk/lib/atl
15 ${REACTOS_SOURCE_DIR})
16
17 file(GLOB_RECURSE sendmail_rc_deps res/*.*)
18 add_rc_deps(sendmail.rc ${sendmail_rc_deps})
19
20 list(APPEND SOURCE
21 CDeskLinkDropHandler.cpp
22 sendmail.cpp
23 precomp.hpp)
24
25 add_library(sendmail MODULE
26 ${SOURCE}
27 sendmail.rc
28 ${CMAKE_CURRENT_BINARY_DIR}/sendmail.def)
29
30 set_module_type(sendmail win32dll UNICODE)
31 target_link_libraries(sendmail uuid wine)
32 add_delay_importlibs(sendmail ole32 oleaut32)
33 add_importlibs(sendmail advapi32 shell32 user32 comctl32 shlwapi msvcrt kernel32 ntdll)
34 add_pch(sendmail precomp.hpp SOURCE)
35 add_cd_file(TARGET sendmail DESTINATION reactos/system32 FOR all)