9d9100847214b20d725d6a0593ac6f3ef7ee9054
[reactos.git] / drivers / video / videoprt / CMakeLists.txt
1
2
3
4 include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl/include)
5
6 add_definitions(-D_VIDEOPORT_)
7
8 spec2def(videoprt ${CMAKE_CURRENT_SOURCE_DIR}/videoprt.spec ${CMAKE_CURRENT_BINARY_DIR}/videoprt.def)
9
10 list(APPEND SOURCE
11 agp.c
12 ddc.c
13 dispatch.c
14 dma.c
15 event.c
16 funclist.c
17 int10.c
18 interrupt.c
19 resource.c
20 services.c
21 spinlock.c
22 stubs.c
23 timer.c
24 videoprt.c
25 videoprt.rc)
26
27 add_library(videoprt SHARED ${CMAKE_CURRENT_BINARY_DIR}/videoprt_videoprt.h.gch ${SOURCE})
28
29 set_target_properties(videoprt PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native" SUFFIX ".sys")
30
31 target_link_libraries(videoprt
32 ${CMAKE_CURRENT_BINARY_DIR}/videoprt.def
33 -lntoskrnl
34 -lhal)
35
36 add_pch(videoprt ${CMAKE_CURRENT_SOURCE_DIR}/videoprt.h ${SOURCE})
37 add_dependencies(videoprt videoprt_def psdk bugcodes buildno_header)
38 add_livecd_target(videoprt reactos/system32/drivers)