xref: /reactos/dll/win32/shdocvw/CMakeLists.txt (revision 541cb0d9)
1
2add_definitions(
3    -D_SHDOCVW_)
4
5spec2def(shdocvw.dll shdocvw.spec ADD_IMPORTLIB)
6
7list(APPEND SOURCE
8    shdocvw_main.c
9    shlinstobj.c
10    precomp.h
11    ${CMAKE_CURRENT_BINARY_DIR}/shdocvw_stubs.c)
12
13add_typelib(res/shdocvw_v1.idl)
14set_source_files_properties(shdocvw.rc PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/shdocvw_v1.tlb)
15
16add_library(shdocvw MODULE
17    ${SOURCE}
18    shdocvw.rc
19    $<TARGET_OBJECTS:shdocvw_sublib>
20    ${CMAKE_CURRENT_BINARY_DIR}/shdocvw.def)
21
22target_include_directories(shdocvw BEFORE PRIVATE
23    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine
24)
25
26set_module_type(shdocvw win32dll UNICODE)
27target_link_libraries(shdocvw cpprt uuid wine)
28add_delay_importlibs(shdocvw shell32 user32 gdi32 ole32 oleaut32 ieframe)
29add_importlibs(shdocvw shlwapi advapi32 msvcrt comctl32 kernel32 ntdll)
30add_dependencies(shdocvw stdole2)
31add_pch(shdocvw precomp.h SOURCE)
32add_cd_file(TARGET shdocvw DESTINATION reactos/system32 FOR all)
33
34add_library(shdocvw_sublib OBJECT
35    CExplorerBand.cpp
36    CFavBand.cpp
37    CNSCBand.cpp
38    mrulist.cpp
39    objects.cpp
40    utility.cpp)
41target_link_libraries(shdocvw_sublib PRIVATE atl_classes)
42target_compile_definitions(shdocvw_sublib PRIVATE $<TARGET_PROPERTY:shdocvw,COMPILE_DEFINITIONS>)
43target_compile_options(shdocvw_sublib PRIVATE $<TARGET_PROPERTY:shdocvw,COMPILE_OPTIONS>)
44add_dependencies(shdocvw_sublib psdk)
45