[SENDMAIL][ZIPFLDR][MYDOCS] Fix creation of SendTo files (#2616)
[reactos.git] / dll / shellext / mydocs / CMakeLists.txt
1 set_cpp(WITH_RUNTIME)
2 spec2def(mydocs.dll mydocs.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 mydocs_rc_deps res/*.*)
18 add_rc_deps(mydocs.rc ${mydocs_rc_deps})
19
20 list(APPEND SOURCE
21 CMyDocsDropHandler.cpp
22 mydocs.cpp
23 precomp.hpp)
24
25 add_library(mydocs MODULE
26 ${SOURCE}
27 mydocs.rc
28 ${CMAKE_CURRENT_BINARY_DIR}/mydocs.def)
29
30 set_module_type(mydocs win32dll UNICODE)
31 target_link_libraries(mydocs uuid wine)
32 add_delay_importlibs(mydocs ole32 oleaut32)
33 add_importlibs(mydocs advapi32 shell32 user32 comctl32 shlwapi msvcrt kernel32 ntdll)
34 add_pch(mydocs precomp.hpp SOURCE)
35 add_cd_file(TARGET mydocs DESTINATION reactos/system32 FOR all)