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 InitOnce.c 22 interlck.c 23 IsDBCSLeadByteEx.c 24 JapaneseCalendar.c 25 LCMapString.c 26 LoadLibraryExW.c 27 lstrcpynW.c 28 lstrlen.c 29 Mailslot.c 30 MultiByteToWideChar.c 31 PrivMoveFileIdentityW.c 32 QueueUserAPC.c 33 SetComputerNameExW.c 34 SetConsoleWindowInfo.c 35 SetCurrentDirectory.c 36 SetUnhandledExceptionFilter.c 37 SystemFirmware.c 38 TerminateProcess.c 39 TunnelCache.c 40 UEFIFirmware.c 41 WideCharToMultiByte.c) 42 43list(APPEND PCH_SKIP_SOURCE 44 testlist.c) 45 46add_executable(kernel32_apitest 47 ${SOURCE} 48 ${PCH_SKIP_SOURCE} 49 kernel32_apitest.rc) 50 51target_link_libraries(kernel32_apitest wine ${PSEH_LIB}) 52set_module_type(kernel32_apitest win32cui) 53add_delay_importlibs(kernel32_apitest advapi32 shlwapi) 54add_importlibs(kernel32_apitest msvcrt kernel32 ntdll) 55add_dependencies(kernel32_apitest FormatMessage) 56add_pch(kernel32_apitest precomp.h "${PCH_SKIP_SOURCE}") 57add_rostests_file(TARGET kernel32_apitest) 58 59list(APPEND MANIFEST_FILES 60 classtest.manifest 61 classtest2.manifest 62 comctl32dep.manifest 63 dep1.manifest 64 deptest.manifest 65 xmlns.manifest) 66 67foreach(item ${MANIFEST_FILES}) 68 add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/${item}") 69endforeach(item) 70