1
2add_definitions(
3    -D__WINESRC__
4    -DUSE_WINE_TODOS
5    -DWINETEST_USE_DBGSTR_LONGLONG
6    -D_USE_MATH_DEFINES)
7
8include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
9add_typelib(test_reg.idl test_tlb.idl tmarshal.idl)
10add_idl_Headers(oleaut32_idlheaders test_reg.idl test_tlb.idl tmarshal.idl)
11generate_idl_iids(test_reg.idl test_tlb.idl tmarshal.idl)
12
13list(APPEND SOURCE
14    dispatch.c
15    olefont.c
16    olepicture.c
17    safearray.c
18    tmarshal.c
19    typelib.c
20    usrmarshal.c
21    varformat.c
22    vartest.c
23    vartype.c
24    ${CMAKE_CURRENT_BINARY_DIR}/test_reg_i.c
25    ${CMAKE_CURRENT_BINARY_DIR}/test_tlb_i.c
26    ${CMAKE_CURRENT_BINARY_DIR}/tmarshal_i.c)
27
28list(APPEND PCH_SKIP_SOURCE
29    testlist.c)
30
31set(tmarshal.rc_DEPS
32    ${CMAKE_CURRENT_BINARY_DIR}/test_reg.tlb
33    ${CMAKE_CURRENT_BINARY_DIR}/test_tlb.tlb
34    ${CMAKE_CURRENT_BINARY_DIR}/tmarshal.tlb)
35
36set_source_files_properties(tmarshal.rc PROPERTIES OBJECT_DEPENDS "${tmarshal.rc_DEPS}")
37
38add_executable(oleaut32_winetest
39    ${SOURCE}
40    ${PCH_SKIP_SOURCE}
41    tmarshal.rc)
42
43target_link_libraries(oleaut32_winetest uuid)
44set_module_type(oleaut32_winetest win32cui)
45add_importlibs(oleaut32_winetest oleaut32 ole32 rpcrt4 user32 gdi32 advapi32 msvcrt kernel32)
46
47if(MSVC)
48    add_importlibs(oleaut32_winetest ntdll)
49endif()
50
51add_dependencies(oleaut32_winetest stdole2 oleaut32_idlheaders)
52add_pch(oleaut32_winetest precomp.h "${PCH_SKIP_SOURCE}")
53add_rostests_file(TARGET oleaut32_winetest)
54