3ac0b604f164981b370c9f59b9227b3caeb56603
[reactos.git] / modules / rostests / apitests / ntdll / CMakeLists.txt
1
2 list(APPEND SOURCE
3 LdrEnumResources.c
4 NtAcceptConnectPort.c
5 NtAllocateVirtualMemory.c
6 NtApphelpCacheControl.c
7 NtContinue.c
8 NtCreateFile.c
9 NtCreateKey.c
10 NtCreateThread.c
11 NtDeleteKey.c
12 NtFreeVirtualMemory.c
13 NtLoadUnloadKey.c
14 NtMapViewOfSection.c
15 NtMutant.c
16 NtOpenKey.c
17 NtOpenProcessToken.c
18 NtOpenThreadToken.c
19 NtProtectVirtualMemory.c
20 NtQueryInformationProcess.c
21 NtQueryKey.c
22 NtQuerySystemEnvironmentValue.c
23 NtQueryVolumeInformationFile.c
24 NtReadFile.c
25 NtSaveKey.c
26 NtSetValueKey.c
27 NtWriteFile.c
28 RtlAllocateHeap.c
29 RtlBitmap.c
30 RtlCopyMappedMemory.c
31 RtlDeleteAce.c
32 RtlDetermineDosPathNameType.c
33 RtlDoesFileExists.c
34 RtlDosApplyFileIsolationRedirection_Ustr.c
35 RtlDosPathNameToNtPathName_U.c
36 RtlDosSearchPath_U.c
37 RtlDosSearchPath_Ustr.c
38 RtlFirstFreeAce.c
39 RtlGenerate8dot3Name.c
40 RtlGetFullPathName_U.c
41 RtlGetFullPathName_Ustr.c
42 RtlGetFullPathName_UstrEx.c
43 RtlGetLengthWithoutTrailingPathSeperators.c
44 RtlGetLongestNtPathLength.c
45 RtlHandle.c
46 RtlImageRvaToVa.c
47 RtlInitializeBitMap.c
48 RtlIsNameLegalDOS8Dot3.c
49 RtlMemoryStream.c
50 RtlNtPathNameToDosPathName.c
51 RtlpEnsureBufferSize.c
52 RtlReAllocateHeap.c
53 RtlUnicodeStringToAnsiString.c
54 RtlUpcaseUnicodeStringToCountedOemString.c
55 StackOverflow.c
56 SystemInfo.c
57 Timer.c
58 precomp.h)
59
60 if(ARCH STREQUAL "i386")
61 add_asm_files(ntdll_apitest_asm i386/NtContinue.S)
62 endif()
63
64 add_executable(ntdll_apitest ${SOURCE} ${ntdll_apitest_asm} testlist.c)
65 target_link_libraries(ntdll_apitest wine uuid ${PSEH_LIB})
66 set_module_type(ntdll_apitest win32cui)
67 add_importlibs(ntdll_apitest msvcrt advapi32 kernel32 ntdll)
68 add_pch(ntdll_apitest precomp.h SOURCE)
69
70 if(NOT MSVC)
71 set_source_files_properties(RtlGetFullPathName_UstrEx.c PROPERTIES COMPILE_FLAGS "-Wno-format")
72 endif()
73
74 add_rostests_file(TARGET ntdll_apitest)
75 add_rostests_file(TARGET ntdll_apitest SUBDIR testdata)
76 # These are empty files
77 add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/ntdll_apitest.exe.local" SUBDIR testdata)
78 add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/shell32.dll" SUBDIR testdata)
79 add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/test.dll" SUBDIR testdata)
80
81 add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/ntdlltest.manifest" SUBDIR testdata)
82 add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/Microsoft.Windows.GdiPlus.manifest" SUBDIR testdata)