1
2add_subdirectory(redirptest)
3
4add_message_headers(ANSI FormatMessage.mc)
5
6list(APPEND SOURCE
7    ConsoleCP.c
8    CreateProcess.c
9    DefaultActCtx.c
10    DeviceIoControl.c
11    dosdev.c
12    FindActCtxSectionStringW.c
13    FindFiles.c
14    FLS.c
15    FormatMessage.c
16    GetComputerNameEx.c
17    GetCurrentDirectory.c
18    GetDriveType.c
19    GetModuleFileName.c
20    GetVolumeInformation.c
21    interlck.c
22    IsDBCSLeadByteEx.c
23    JapaneseCalendar.c
24    LoadLibraryExW.c
25    lstrcpynW.c
26    lstrlen.c
27    Mailslot.c
28    MultiByteToWideChar.c
29    PrivMoveFileIdentityW.c
30    QueueUserAPC.c
31    SetComputerNameExW.c
32    SetConsoleWindowInfo.c
33    SetCurrentDirectory.c
34    SetUnhandledExceptionFilter.c
35    SystemFirmware.c
36    TerminateProcess.c
37    TunnelCache.c
38    WideCharToMultiByte.c)
39
40list(APPEND PCH_SKIP_SOURCE
41    testlist.c)
42
43add_executable(kernel32_apitest
44    ${SOURCE}
45    ${PCH_SKIP_SOURCE}
46    kernel32_apitest.rc)
47
48target_link_libraries(kernel32_apitest wine ${PSEH_LIB})
49set_module_type(kernel32_apitest win32cui)
50add_delay_importlibs(kernel32_apitest advapi32 shlwapi)
51add_importlibs(kernel32_apitest msvcrt kernel32 ntdll)
52add_dependencies(kernel32_apitest FormatMessage)
53add_pch(kernel32_apitest precomp.h "${PCH_SKIP_SOURCE}")
54add_rostests_file(TARGET kernel32_apitest)
55
56list(APPEND MANIFEST_FILES
57    classtest.manifest
58    classtest2.manifest
59    comctl32dep.manifest
60    dep1.manifest
61    deptest.manifest
62    xmlns.manifest)
63
64foreach(item ${MANIFEST_FILES})
65    add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/${item}")
66endforeach(item)
67