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