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