[GDI32_APITEST] Add a PCH.
[reactos.git] / subsystems / mvdm / ntvdm / CMakeLists.txt
1
2 PROJECT(NTVDM)
3
4 #####################################
5 # Generate the integrated COMMAND.COM
6 #
7
8 # Retrieve the full path to the generated file of the 'command' target
9 get_target_property(_command_com_file command LOCATION)
10
11 add_custom_command(
12 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/command_com.c ${CMAKE_CURRENT_BINARY_DIR}/command_com.h
13 COMMAND native-bin2c ${_command_com_file} ${CMAKE_CURRENT_BINARY_DIR}/command_com.c ${CMAKE_CURRENT_BINARY_DIR}/command_com.h BIN CommandCom
14 DEPENDS native-bin2c command ${_command_com_file})
15 #####################################
16
17 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/fast486)
18
19 spec2def(ntvdm.exe ntvdm.spec ADD_IMPORTLIB)
20
21 list(APPEND SOURCE
22 bios/bios32/bios32.c
23 bios/bios32/dskbios32.c
24 bios/bios32/kbdbios32.c
25 bios/bios32/moubios32.c
26 bios/bios32/vbe.c
27 bios/bios32/vidbios32.c
28 bios/bios.c
29 bios/kbdbios.c
30 bios/rom.c
31 bios/umamgr.c
32 bios/vidbios.c
33 cpu/bop.c
34 cpu/callback.c
35 cpu/cpu.c
36 cpu/registers.c
37 hardware/cmos.c
38 hardware/disk.c
39 hardware/dma.c
40 hardware/keyboard.c
41 hardware/mouse.c
42 hardware/pic.c
43 hardware/pit.c
44 hardware/ppi.c
45 hardware/ps2.c
46 hardware/sound/speaker.c
47 hardware/video/svga.c
48 dos/dos32krnl/bios.c
49 dos/dos32krnl/condrv.c
50 dos/dos32krnl/country.c
51 dos/dos32krnl/device.c
52 dos/dos32krnl/dos.c
53 dos/dos32krnl/dosfiles.c
54 dos/dos32krnl/emsdrv.c
55 dos/dos32krnl/handle.c
56 dos/dos32krnl/himem.c
57 dos/dos32krnl/memory.c
58 dos/dos32krnl/process.c
59 dos/dem.c
60 dos/mouse32.c
61 ${CMAKE_CURRENT_BINARY_DIR}/command_com.c
62 clock.c
63 emulator.c
64 int32.c
65 io.c
66 memory.c
67 utils.c
68 vddsup.c
69 ntvdm.c
70 ntvdm.h
71 ${CMAKE_CURRENT_BINARY_DIR}/ntvdm.def)
72
73 file(GLOB ntvdm_rc_deps res/*.*)
74 add_rc_deps(ntvdm.rc ${ntvdm_rc_deps})
75 add_executable(ntvdm ${SOURCE} ntvdm.rc)
76 add_pch(ntvdm ntvdm.h SOURCE)
77 set_module_type(ntvdm win32cui UNICODE IMAGEBASE 0x0F000000)
78 target_link_libraries(ntvdm fast486 ${PSEH_LIB})
79 add_importlibs(ntvdm user32 gdi32 advapi32 comdlg32 msvcrt kernel32 ntdll)
80 add_cd_file(TARGET ntvdm DESTINATION reactos/system32 FOR all)