1
2add_definitions(-DUSE_WINE_TODOS)
3add_idl_Headers(test_tlb_header test_tlb.idl)
4add_typelib(test_tlb.idl)
5
6list(APPEND SOURCE
7    activex.c
8    dom.c
9    events.c
10    htmldoc.c
11    htmllocation.c
12    misc.c
13    protocol.c
14    script.c
15    style.c
16    xmlhttprequest.c)
17
18list(APPEND PCH_SKIP_SOURCE
19    guid.c
20    testlist.c)
21
22add_executable(mshtml_winetest
23    ${SOURCE}
24    ${PCH_SKIP_SOURCE}
25    rsrc.rc)
26
27list(APPEND mshtml_winetest_rc_deps
28    ${CMAKE_CURRENT_BINARY_DIR}/test_tlb.tlb
29    ${CMAKE_CURRENT_SOURCE_DIR}/blank.html
30    ${CMAKE_CURRENT_SOURCE_DIR}/exectest.html
31    ${CMAKE_CURRENT_SOURCE_DIR}/jstest.html
32    ${CMAKE_CURRENT_SOURCE_DIR}/nav_test.html
33    ${CMAKE_CURRENT_SOURCE_DIR}/vbtest.html
34    ${CMAKE_CURRENT_SOURCE_DIR}/events.html
35    ${CMAKE_CURRENT_SOURCE_DIR}/externscr.js)
36
37set_source_files_properties(rsrc.rc PROPERTIES OBJECT_DEPENDS "${mshtml_winetest_rc_deps}")
38target_link_libraries(mshtml_winetest uuid strmiids)
39set_module_type(mshtml_winetest win32cui)
40add_importlibs(mshtml_winetest wininet ole32 oleaut32 user32 gdi32 urlmon advapi32 msvcrt kernel32)
41add_dependencies(mshtml_winetest test_tlb_header stdole2)
42add_pch(mshtml_winetest precomp.h "${PCH_SKIP_SOURCE}")
43add_rostests_file(TARGET mshtml_winetest)
44