2 ADD_TYPELIB(mshtml_tlb mshtml_tlb.idl)
3 add_dependencies(mshtml_tlb stdole2)
5 add_definitions(-D__WINESRC__)
7 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
10 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def
11 COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/mshtml.tlb.spec --filename mshtml.tlb
12 DEPENDS native-winebuild)
13 set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def PROPERTIES GENERATED TRUE)
14 add_custom_target(mshtml.tlb_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def)
16 add_library(mshtml.tlb SHARED rsrc.rc)
18 set_entrypoint(mshtml.tlb 0)
19 set_target_properties(mshtml.tlb PROPERTIES SUFFIX "")
21 target_link_libraries(mshtml.tlb ${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def)
23 add_dependencies(mshtml.tlb mshtml_tlb mshtml.tlb_def)
24 add_cab_target(mshtml.tlb 1)