[NTDLL_APITEST]
[reactos.git] / rostests / apitests / ntdll / CMakeLists.txt
1
2 list(APPEND SOURCE
3 NtAllocateVirtualMemory.c
4 NtFreeVirtualMemory.c
5 RtlBitmap.c
6 RtlDetermineDosPathNameType.c
7 RtlDoesFileExists.c
8 RtlDosSearchPath_U.c
9 RtlDosSearchPath_Ustr.c
10 RtlGetFullPathName_U.c
11 RtlGetFullPathName_Ustr.c
12 RtlGetFullPathName_UstrEx.c
13 RtlGetLongestNtPathLength.c
14 RtlInitializeBitMap.c
15 SystemInfo.c
16 ZwContinue.c
17 testlist.c)
18
19 if(ARCH MATCHES i386)
20 list(APPEND SOURCE i386/ZwContinue.S)
21 endif()
22
23 add_executable(ntdll_apitest ${SOURCE})
24 target_link_libraries(ntdll_apitest wine ${PSEH_LIB})
25 set_module_type(ntdll_apitest win32cui)
26 add_importlibs(ntdll_apitest msvcrt advapi32 kernel32 ntdll)
27
28 if(NOT MSVC)
29 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
30 #add_target_compile_flags(ntdll_apitest "-Wno-format")
31 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-format")
32 endif()
33
34 add_cd_file(TARGET ntdll_apitest DESTINATION reactos/bin FOR all)