xref: /reactos/dll/win32/shdocvw/CMakeLists.txt (revision 1734f297)
1
2add_definitions(
3    -D__WINESRC__
4    -D_SHDOCVW_)
5
6include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
7spec2def(shdocvw.dll shdocvw.spec ADD_IMPORTLIB)
8
9list(APPEND SOURCE
10    shdocvw_main.c
11    shlinstobj.c
12    precomp.h
13    ${CMAKE_CURRENT_BINARY_DIR}/shdocvw_stubs.c)
14
15add_typelib(shdocvw_v1.idl)
16set_source_files_properties(shdocvw.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/shdocvw_v1.tlb)
17
18add_library(shdocvw MODULE
19    ${SOURCE}
20    shdocvw.rc
21    ${CMAKE_CURRENT_BINARY_DIR}/shdocvw.def)
22
23set_module_type(shdocvw win32dll)
24target_link_libraries(shdocvw uuid wine)
25add_delay_importlibs(shdocvw ole32 oleaut32 ieframe)
26add_importlibs(shdocvw shlwapi advapi32 msvcrt kernel32 ntdll)
27add_dependencies(shdocvw stdole2)
28add_pch(shdocvw precomp.h SOURCE)
29add_cd_file(TARGET shdocvw DESTINATION reactos/system32 FOR all)
30