[BRANCHES]
[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 NtProtectVirtualMemory.c
11 NtQuerySystemEnvironmentValue.c
12 NtQueryVolumeInformationFile.c
13 RtlBitmap.c
14 RtlDetermineDosPathNameType.c
15 RtlDoesFileExists.c
16 RtlDosPathNameToNtPathName_U.c
17 RtlDosSearchPath_U.c
18 RtlDosSearchPath_Ustr.c
19 RtlGetFullPathName_U.c
20 RtlGetFullPathName_Ustr.c
21 RtlGetFullPathName_UstrEx.c
22 RtlGetLengthWithoutTrailingPathSeperators.c
23 RtlGetLongestNtPathLength.c
24 RtlInitializeBitMap.c
25 RtlMemoryStream.c
26 SystemInfo.c
27 Timer.c
28 testlist.c)
29
30 if(ARCH STREQUAL "i386")
31 add_asm_files(ntdll_apitest_asm i386/NtContinue.S)
32 endif()
33
34 add_executable(ntdll_apitest ${SOURCE} ${ntdll_apitest_asm})
35 target_link_libraries(ntdll_apitest wine uuid ${PSEH_LIB})
36 set_module_type(ntdll_apitest win32cui)
37 add_importlibs(ntdll_apitest msvcrt advapi32 kernel32 ntdll)
38
39 if(NOT MSVC)
40 set_source_files_properties(RtlGetFullPathName_UstrEx.c PROPERTIES COMPILE_FLAGS "-Wno-format")
41 endif()
42
43 add_cd_file(TARGET ntdll_apitest DESTINATION reactos/bin FOR all)