4fb7da1ee997b1d07776200e43cb769bd2836bf2
[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 SystemInfo.c
25 Timer.c
26 testlist.c)
27
28 if(ARCH STREQUAL "i386")
29 add_asm_files(ntdll_apitest_asm i386/NtContinue.S)
30 endif()
31
32 add_executable(ntdll_apitest ${SOURCE} ${ntdll_apitest_asm})
33 target_link_libraries(ntdll_apitest wine ${PSEH_LIB})
34 set_module_type(ntdll_apitest win32cui)
35 add_importlibs(ntdll_apitest msvcrt advapi32 kernel32 ntdll)
36
37 if(NOT MSVC)
38 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
39 #add_target_compile_flags(ntdll_apitest "-Wno-format")
40 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-format")
41 endif()
42
43 add_cd_file(TARGET ntdll_apitest DESTINATION reactos/bin FOR all)