3c7fc7dbd9849c2c93db89e1bab32d770ed44bcc
[reactos.git] / rostests / apitests / ntdll / CMakeLists.txt
1
2 list(APPEND SOURCE
3 LdrEnumResources.c
4 NtAllocateVirtualMemory.c
5 NtApphelpCacheControl.c
6 NtContinue.c
7 NtCreateFile.c
8 NtCreateThread.c
9 NtDeleteKey.c
10 NtFreeVirtualMemory.c
11 NtMapViewOfSection.c
12 NtMutant.c
13 NtProtectVirtualMemory.c
14 NtQueryKey.c
15 NtQuerySystemEnvironmentValue.c
16 NtQueryVolumeInformationFile.c
17 NtSaveKey.c
18 RtlBitmap.c
19 RtlCopyMappedMemory.c
20 RtlDetermineDosPathNameType.c
21 RtlDoesFileExists.c
22 RtlDosPathNameToNtPathName_U.c
23 RtlDosSearchPath_U.c
24 RtlDosSearchPath_Ustr.c
25 RtlGetFullPathName_U.c
26 RtlGetFullPathName_Ustr.c
27 RtlGetFullPathName_UstrEx.c
28 RtlGetLengthWithoutTrailingPathSeperators.c
29 RtlGetLongestNtPathLength.c
30 RtlInitializeBitMap.c
31 RtlMemoryStream.c
32 RtlReAllocateHeap.c
33 StackOverflow.c
34 SystemInfo.c
35 Timer.c
36 testlist.c)
37
38 if(ARCH STREQUAL "i386")
39 add_asm_files(ntdll_apitest_asm i386/NtContinue.S)
40 endif()
41
42 add_executable(ntdll_apitest ${SOURCE} ${ntdll_apitest_asm})
43 target_link_libraries(ntdll_apitest wine uuid ${PSEH_LIB})
44 set_module_type(ntdll_apitest win32cui)
45 add_importlibs(ntdll_apitest msvcrt advapi32 kernel32 ntdll)
46
47 if(NOT MSVC)
48 set_source_files_properties(RtlGetFullPathName_UstrEx.c PROPERTIES COMPILE_FLAGS "-Wno-format")
49 endif()
50
51 add_cd_file(TARGET ntdll_apitest DESTINATION reactos/bin FOR all)