755212a74e454cd26cb9d5b87bf2dd9a4fa2f2b7
[reactos.git] / 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 NtMapViewOfSection.c
14 NtMutant.c
15 NtOpenProcessToken.c
16 NtOpenThreadToken.c
17 NtProtectVirtualMemory.c
18 NtQueryInformationProcess.c
19 NtQueryKey.c
20 NtQuerySystemEnvironmentValue.c
21 NtQueryVolumeInformationFile.c
22 NtReadFile.c
23 NtSaveKey.c
24 NtSetValueKey.c
25 NtWriteFile.c
26 RtlAllocateHeap.c
27 RtlBitmap.c
28 RtlCopyMappedMemory.c
29 RtlDeleteAce.c
30 RtlDetermineDosPathNameType.c
31 RtlDoesFileExists.c
32 RtlDosApplyFileIsolationRedirection_Ustr.c
33 RtlDosPathNameToNtPathName_U.c
34 RtlDosSearchPath_U.c
35 RtlDosSearchPath_Ustr.c
36 RtlFirstFreeAce.c
37 RtlGenerate8dot3Name.c
38 RtlGetFullPathName_U.c
39 RtlGetFullPathName_Ustr.c
40 RtlGetFullPathName_UstrEx.c
41 RtlGetLengthWithoutTrailingPathSeperators.c
42 RtlGetLongestNtPathLength.c
43 RtlHandle.c
44 RtlImageRvaToVa.c
45 RtlInitializeBitMap.c
46 RtlIsNameLegalDOS8Dot3.c
47 RtlMemoryStream.c
48 RtlNtPathNameToDosPathName.c
49 RtlpEnsureBufferSize.c
50 RtlReAllocateHeap.c
51 RtlUpcaseUnicodeStringToCountedOemString.c
52 StackOverflow.c
53 SystemInfo.c
54 Timer.c
55 testlist.c)
56
57 if(ARCH STREQUAL "i386")
58 add_asm_files(ntdll_apitest_asm i386/NtContinue.S)
59 endif()
60
61 add_executable(ntdll_apitest ${SOURCE} ${ntdll_apitest_asm})
62 target_link_libraries(ntdll_apitest wine uuid ${PSEH_LIB})
63 set_module_type(ntdll_apitest win32cui)
64 add_importlibs(ntdll_apitest msvcrt advapi32 kernel32 ntdll)
65
66 if(NOT MSVC)
67 set_source_files_properties(RtlGetFullPathName_UstrEx.c PROPERTIES COMPILE_FLAGS "-Wno-format")
68 endif()
69
70 add_rostests_file(TARGET ntdll_apitest)
71 add_rostests_file(TARGET ntdll_apitest SUBDIR testdata)
72 # These are empty files
73 add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/ntdll_apitest.exe.local" SUBDIR testdata)
74 add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/shell32.dll" SUBDIR testdata)
75 add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/test.dll" SUBDIR testdata)