target_link_libraries(oleaut32_winetest uuid wine)
set_module_type(oleaut32_winetest win32cui)
add_importlibs(oleaut32_winetest oleaut32 ole32 rpcrt4 user32 gdi32 advapi32 msvcrt kernel32 ntdll)
+
SET(tmarshal.rc_DEPS
+${REACTOS_BINARY_DIR}/include/psdk/stdole2.tlb
${CMAKE_CURRENT_BINARY_DIR}/test_reg.tlb
${CMAKE_CURRENT_BINARY_DIR}/test_tlb.tlb
${CMAKE_CURRENT_BINARY_DIR}/tmarshal.tlb)
-#doesn't work, only includes test_reg.tlb
-#set_source_files_properties(tmarshal.rc PROPERTIES OBJECT_DEPENDS ${tmarshal.rc_DEPS})
-add_custom_target(oleaut32_typelibs ALL DEPENDS ${tmarshal.rc_DEPS})
+set_source_files_properties(tmarshal.rc PROPERTIES OBJECT_DEPENDS "${tmarshal.rc_DEPS}")
-add_dependencies(oleaut32_winetest oleaut32_typelibs oleaut32_idlheaders stdole2)
+add_dependencies(oleaut32_winetest stdole2 oleaut32_typelibs oleaut32_idlheaders )
add_cd_file(TARGET oleaut32_winetest DESTINATION reactos/bin FOR all)