mirror of
https://github.com/reactos/reactos.git
synced 2024-09-20 17:51:53 +00:00
174808a463
This allows linking to libraries with "-lfoo". svn path=/branches/cmake-bringup/; revision=48796
14 lines
467 B
CMake
14 lines
467 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>")
|
|
|
|
add_library(null SHARED null.c null.rc)
|
|
|
|
set_target_properties(null PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols" SUFFIX ".sys")
|
|
|
|
target_link_libraries(null
|
|
pseh
|
|
-lntoskrnl
|
|
-lhal)
|
|
|
|
add_dependencies(null psdk bugcodes)
|