[CMAKE] Implement PCH builds with target_precompile_headers. CORE-16905
[reactos.git] / modules / rostests / winetests / ole32 / CMakeLists.txt
1
2 add_definitions(-DUSE_WINE_TODOS)
3
4 list(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
20 list(APPEND PCH_SKIP_SOURCE
21 testlist.c)
22
23 add_executable(ole32_winetest
24 ${SOURCE}
25 ${PCH_SKIP_SOURCE})
26
27 target_link_libraries(ole32_winetest uuid)
28 set_module_type(ole32_winetest win32cui)
29 add_importlibs(ole32_winetest oleaut32 ole32 user32 gdi32 advapi32 msvcrt kernel32)
30
31 if(MSVC)
32 add_importlibs(ole32_winetest ntdll)
33 endif()
34
35 add_pch(ole32_winetest precomp.h "${PCH_SKIP_SOURCE}")
36 add_rostests_file(TARGET ole32_winetest)