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