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