[CMAKE]
[reactos.git] / drivers / storage / class / ramdisk / CMakeLists.txt
1
2 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>")
3
4 include_directories(..)
5
6 add_library(ramdisk SHARED ramdisk.c ramdisk.rc)
7
8 set_target_properties(ramdisk PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
9
10 target_link_libraries(ramdisk
11 ${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
12 ${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
13
14 add_dependencies(ramdisk psdk bugcodes)