1
2include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl/include)
3add_definitions(-D_VIDEOPORT_)
4spec2def(videoprt.sys videoprt.spec ADD_IMPORTLIB)
5
6list(APPEND SOURCE
7    agp.c
8    child.c
9    ddc.c
10    dispatch.c
11    dma.c
12    event.c
13    funclist.c
14    int10.c
15    interrupt.c
16    registry.c
17    resource.c
18    services.c
19    spinlock.c
20    stubs.c
21    timer.c
22    videoprt.c)
23
24list(APPEND PCH_SKIP_SOURCE
25    guid.c)
26
27add_library(videoprt MODULE
28    ${SOURCE}
29    ${PCH_SKIP_SOURCE}
30    videoprt.rc
31    ${CMAKE_CURRENT_BINARY_DIR}/videoprt.def)
32
33set_module_type(videoprt kernelmodedriver)
34target_link_libraries(videoprt ${PSEH_LIB})
35add_importlibs(videoprt ntoskrnl hal)
36add_pch(videoprt videoprt.h "${PCH_SKIP_SOURCE}")
37add_cd_file(TARGET videoprt DESTINATION reactos/system32/drivers FOR all)
38