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