1
2add_definitions(-DUSE_WINE_TODOS)
3
4list(APPEND SOURCE
5    clipboard.c
6    compobj.c
7    defaulthandler.c
8    dragdrop.c
9    errorinfo.c
10    hglobalstream.c
11    marshal.c
12    moniker.c
13    ole2.c
14    ole_server.c
15    propvariant.c
16    stg_prop.c
17    storage32.c
18    usrmarshal.c)
19
20list(APPEND PCH_SKIP_SOURCE
21    testlist.c)
22
23add_executable(ole32_winetest
24    ${SOURCE}
25    ${PCH_SKIP_SOURCE})
26
27target_link_libraries(ole32_winetest uuid)
28set_module_type(ole32_winetest win32cui)
29add_importlibs(ole32_winetest oleaut32 ole32 user32 gdi32 advapi32 msvcrt kernel32)
30
31if(MSVC)
32    add_importlibs(ole32_winetest ntdll)
33endif()
34
35if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
36	target_compile_options(ole32_winetest PRIVATE -Wno-format-overflow)
37endif()
38
39add_pch(ole32_winetest precomp.h "${PCH_SKIP_SOURCE}")
40add_rostests_file(TARGET ole32_winetest)
41