reactos/drivers/video/videoprt/CMakeLists.txt
Jérôme Gardou fd5ef6b1c1 [CMAKE]
- add macros add_cab and add_cab_target to add files to reactos.dff
  - add bootcd target
  - make use of these macros to create bootcd and livecd
Bootcd works and install things, but 2nd stage fails booting. We need debug symbols!!!

svn path=/branches/cmake-bringup/; revision=49347
2010-10-30 09:53:53 +00:00

38 lines
No EOL
925 B
CMake

include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl/include)
add_definitions(-D_VIDEOPORT_)
spec2def(videoprt ${CMAKE_CURRENT_SOURCE_DIR}/videoprt.spec ${CMAKE_CURRENT_BINARY_DIR}/videoprt.def)
list(APPEND SOURCE
agp.c
ddc.c
dispatch.c
dma.c
event.c
funclist.c
int10.c
interrupt.c
resource.c
services.c
spinlock.c
stubs.c
timer.c
videoprt.c
videoprt.rc)
add_library(videoprt SHARED ${CMAKE_CURRENT_BINARY_DIR}/videoprt_videoprt.h.gch ${SOURCE})
set_target_properties(videoprt PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native" SUFFIX ".sys")
target_link_libraries(videoprt
${CMAKE_CURRENT_BINARY_DIR}/videoprt.def
-lntoskrnl
-lhal)
add_pch(videoprt ${CMAKE_CURRENT_SOURCE_DIR}/videoprt.h ${SOURCE})
add_dependencies(videoprt videoprt_def psdk bugcodes buildno_header)
add_cab_target(videoprt 2)