[CMAKE]
[reactos.git] / dll / win32 / mshtml.tlb / CMakeLists.txt
1
2 ADD_TYPELIB(mshtml_tlb mshtml_tlb.idl)
3 add_dependencies(mshtml_tlb stdole2)
4
5 add_definitions(-D__WINESRC__)
6
7 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
8
9 add_custom_command(
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)
15
16 add_library(mshtml.tlb SHARED rsrc.rc)
17
18 set_entrypoint(mshtml.tlb 0)
19 set_target_properties(mshtml.tlb PROPERTIES SUFFIX "")
20
21 target_link_libraries(mshtml.tlb ${CMAKE_CURRENT_BINARY_DIR}/mshtml.tlb.def)
22
23 add_dependencies(mshtml.tlb mshtml_tlb mshtml.tlb_def)
24 add_cab_target(mshtml.tlb 1)