reactos/drivers/video/displays/framebuf_new/CMakeLists.txt
Timo Kreuzer 2ea20c66b6 [FRAMEBUF_NEW]
Fix build with MSVC

svn path=/branches/cmake-bringup/; revision=50557
2011-01-29 15:02:53 +00:00

32 lines
853 B
CMake

spec2def(framebuf_new.dll framebuf_new.spec)
list(APPEND SOURCE
debug.c
enable.c
palette.c
pointer.c
screen.c
framebuf_new.rc
${CMAKE_CURRENT_BINARY_DIR}/framebuf_new.def)
add_library(framebuf_new SHARED ${CMAKE_CURRENT_BINARY_DIR}/framebuf_new_driver.h.gch ${SOURCE})
if(ARCH MATCHES i386)
if(MSVC)
set_target_properties(framebuf_new PROPERTIES COMPILE_FLAGS "/Gz")
else()
set_target_properties(framebuf_new PROPERTIES COMPILE_FLAGS "-mrtd -fno-builtin")
endif()
endif()
set_entrypoint(framebuf_new DrvEnableDriver@12)
set_subsystem(framebuf_new native)
set_image_base(framebuf_new 0x00010000)
target_link_libraries(framebuf_new libcntpr)
add_importlibs(framebuf_new win32k)
add_pch(framebuf_new ${CMAKE_CURRENT_SOURCE_DIR}/driver.h ${SOURCE})
add_dependencies(framebuf_new psdk bugcodes)