[KERNEL32_WINETEST] Add a PCH.
[reactos.git] / modules / rostests / winetests / kernel32 / CMakeLists.txt
1
2 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
3 remove_definitions(-DWINVER=0x502 -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x502)
4 add_definitions(-DWINVER=0x600 -D_WIN32_WINNT=0x601)
5
6 list(APPEND SOURCE
7 actctx.c
8 atom.c
9 change.c
10 codepage.c
11 comm.c
12 console.c
13 cpu.c
14 debugger.c
15 directory.c
16 drive.c
17 environ.c
18 fiber.c
19 file.c
20 format_msg.c
21 #generated.c
22 heap.c
23 loader.c
24 locale.c
25 mailslot.c
26 module.c
27 path.c
28 pipe.c
29 process.c
30 profile.c
31 resource.c
32 sync.c
33 thread.c
34 time.c
35 timer.c
36 toolhelp.c
37 version.c
38 virtual.c
39 volume.c
40 precomp.h)
41
42 add_executable(kernel32_winetest
43 ${SOURCE}
44 testlist.c
45 resource.rc)
46
47 if(USE_CLANG_CL OR (NOT MSVC))
48 add_target_compile_flags(kernel32_winetest "-Wno-format")
49 endif()
50
51 set_module_type(kernel32_winetest win32cui)
52 add_importlibs(kernel32_winetest user32 advapi32 msvcrt kernel32 ntdll)
53 add_pch(kernel32_winetest precomp.h SOURCE)
54 add_rostests_file(TARGET kernel32_winetest)