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