[MSVCRT_WINETEST]
[reactos.git] / rostests / winetests / msvcrt / CMakeLists.txt
1
2 add_definitions(
3 -D_CRT_NONSTDC_NO_DEPRECATE
4 -D__msvcrt_ulong=ULONG)
5
6 list(APPEND SOURCE
7 cpp.c
8 data.c
9 dir.c
10 environ.c
11 file.c
12 headers.c
13 heap.c
14 locale.c
15 misc.c
16 printf.c
17 scanf.c
18 signal.c
19 string.c
20 testlist.c
21 time.c)
22
23 add_executable(msvcrt_winetest ${SOURCE})
24
25 set_module_type(msvcrt_winetest win32cui)
26 add_importlibs(msvcrt_winetest msvcrt kernel32)
27
28 if(MSVC)
29 target_link_libraries(msvcrt_winetest oldnames)
30 add_importlibs(msvcrt_winetest ntdll)
31 else()
32 add_target_compile_flags(msvcrt_winetest "-Wno-format")
33 endif()
34
35 add_cd_file(TARGET msvcrt_winetest DESTINATION reactos/bin FOR all)