[CMAKE]
[reactos.git] / drivers / video / displays / framebuf_new / CMakeLists.txt
1
2 spec2def(framebuf_new.dll framebuf_new.spec)
3
4 list(APPEND SOURCE
5 debug.c
6 enable.c
7 palette.c
8 pointer.c
9 screen.c
10 framebuf_new.rc
11 ${CMAKE_CURRENT_BINARY_DIR}/framebuf_new.def)
12
13 add_library(framebuf_new SHARED ${CMAKE_CURRENT_BINARY_DIR}/framebuf_new_driver.h.gch ${SOURCE})
14
15 if(ARCH MATCHES i386)
16 if(MSVC)
17 else()
18 set_target_properties(framebuf_new PROPERTIES COMPILE_FLAGS "-mrtd -fno-builtin")
19 endif()
20 endif()
21
22 set_target_properties(framebuf_new PROPERTIES LINK_FLAGS "-Wl,-entry,_DrvEnableDriver@12 -Wl,--image-base,0x00010000 -Wl,--subsystem,native")
23
24 target_link_libraries(framebuf_new libcntpr)
25
26 add_importlibs(framebuf_new win32k)
27 add_pch(framebuf_new ${CMAKE_CURRENT_SOURCE_DIR}/driver.h ${SOURCE})
28 add_dependencies(framebuf_new psdk bugcodes)