mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 00:34:39 +00:00
17 lines
708 B
Text
17 lines
708 B
Text
|
|
||
|
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>")
|
||
|
|
||
|
include_directories(..)
|
||
|
|
||
|
add_library(disk SHARED disk.c disk.rc)
|
||
|
|
||
|
set_target_properties(disk PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
|
||
|
|
||
|
target_link_libraries(disk
|
||
|
${REACTOS_SOURCE_DIR}/drivers/storage/class/class2/libclass2.a
|
||
|
${REACTOS_SOURCE_DIR}/drivers/storage/scsiport/libscsiport.a
|
||
|
${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
|
||
|
${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
|
||
|
|
||
|
add_dependencies(disk psdk bugcodes)
|