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