[REACTOS]
[reactos.git] / rostests / winetests / kernel32 / CMakeLists.txt
1
2 add_definitions(
3 -D__ROS_LONG64__)
4
5 remove_definitions(-DWINVER=0x502 -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x502)
6
7 list(APPEND SOURCE
8 actctx.c
9 alloc.c
10 atom.c
11 change.c
12 codepage.c
13 comm.c
14 console.c
15 debugger.c
16 directory.c
17 drive.c
18 environ.c
19 fiber.c
20 file.c
21 format_msg.c
22 #generated.c
23 heap.c
24 interlck.c
25 loader.c
26 locale.c
27 mailslot.c
28 module.c
29 path.c
30 pipe.c
31 process.c
32 profile.c
33 resource.c
34 sync.c
35 thread.c
36 time.c
37 timer.c
38 toolhelp.c
39 version.c
40 virtual.c
41 volume.c
42 dosdev.c
43 testlist.c)
44
45 add_executable(kernel32_winetest
46 ${SOURCE}
47 resource.rc)
48
49 target_link_libraries(kernel32_winetest wine)
50 set_module_type(kernel32_winetest win32cui)
51 add_importlibs(kernel32_winetest user32 advapi32 msvcrt kernel32 ntdll)
52
53 if(NOT MSVC)
54 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
55 #add_target_compile_flags(kernel32_winetest "-Wno-format")
56 #allow_warnings(kernel32_winetest)
57 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-format -Wno-error")
58 endif()
59
60 add_cd_file(TARGET kernel32_winetest DESTINATION reactos/bin FOR all)