[CMAKE] Implement PCH builds with target_precompile_headers. CORE-16905
[reactos.git] / modules / rostests / apitests / com / CMakeLists.txt
1
2 add_definitions(-DWINE_NO_UNICODE_MACROS)
3
4 list(APPEND SOURCE
5 browseui.c
6 com_apitest.c
7 ieframe.c
8 netcfgx.c
9 netshell.c
10 ole32.c
11 shdocvw.c
12 shell32.c
13 zipfldr.c)
14
15 list(APPEND PCH_SKIP_SOURCE
16 testlist.c)
17
18 add_executable(com_apitest
19 ${SOURCE}
20 ${PCH_SKIP_SOURCE})
21
22 target_link_libraries(com_apitest wine uuid)
23 set_module_type(com_apitest win32cui)
24 add_importlibs(com_apitest advapi32 ole32 shlwapi shell32 msvcrt kernel32 ntdll)
25 add_pch(com_apitest com_apitest.h "${PCH_SKIP_SOURCE}")
26 add_rostests_file(TARGET com_apitest)