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 precomp.h) 28 29set(tmarshal.rc_DEPS 30 ${CMAKE_CURRENT_BINARY_DIR}/test_reg.tlb 31 ${CMAKE_CURRENT_BINARY_DIR}/test_tlb.tlb 32 ${CMAKE_CURRENT_BINARY_DIR}/tmarshal.tlb) 33 34set_source_files_properties(tmarshal.rc PROPERTIES OBJECT_DEPENDS "${tmarshal.rc_DEPS}") 35add_executable(oleaut32_winetest ${SOURCE} testlist.c tmarshal.rc) 36target_link_libraries(oleaut32_winetest uuid) 37set_module_type(oleaut32_winetest win32cui) 38add_importlibs(oleaut32_winetest oleaut32 ole32 rpcrt4 user32 gdi32 advapi32 msvcrt kernel32) 39 40if(MSVC) 41 add_importlibs(oleaut32_winetest ntdll) 42endif() 43 44add_dependencies(oleaut32_winetest stdole2 oleaut32_idlheaders) 45add_pch(oleaut32_winetest precomp.h SOURCE) 46add_rostests_file(TARGET oleaut32_winetest) 47