reactos/drivers/base/bootvid/CMakeLists.txt
Sylvain Petreolle 174808a463 Move all temporary import libs to a single directory.
This allows linking to libraries with "-lfoo".

svn path=/branches/cmake-bringup/; revision=48796
2010-09-17 20:27:01 +00:00

30 lines
978 B
CMake

set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
spec2def(bootvid ${CMAKE_CURRENT_SOURCE_DIR}/bootvid.spec ${CMAKE_CURRENT_BINARY_DIR}/bootvid.def)
list(APPEND SOURCE bootvid.rc)
if(ARCH MATCHES i386 OR ARCH MATCHES amd64)
list(APPEND SOURCE
i386/bootvid.c
i386/bootdata.c
i386/vga.c)
elseif(ARCH MATCHES arm)
list(APPEND SOURCE
arm/bootvid.c
arm/bootdata.c)
endif(ARCH MATCHES i386 OR ARCH MATCHES amd64)
add_library(bootvid SHARED ${CMAKE_CURRENT_BINARY_DIR}/bootvid_precomp.h.gch ${SOURCE})
set_target_properties(bootvid PROPERTIES LINK_FLAGS "-Wl,-entry,0 -Wl,--image-base,0x00010000")
target_link_libraries(bootvid
${CMAKE_CURRENT_BINARY_DIR}/bootvid.def
-lntoskrnl
-lhal)
add_pch(bootvid ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
add_dependencies(bootvid bootvid_def psdk buildno_header bugcodes)