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