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