[CMAKE]
[reactos.git] / drivers / storage / class / ramdisk / CMakeLists.txt
index 68f8a96..28ec36d 100644 (file)
@@ -1,16 +1,11 @@
 
-
-
 include_directories(..)
 
 add_library(ramdisk SHARED ramdisk.c ramdisk.rc)
 
-set_target_properties(ramdisk PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
-
-target_link_libraries(ramdisk
-    -lntoskrnl
-    -lhal)
+set_module_type(ramdisk kernelmodedriver)
+add_importlibs(ramdisk
+    ntoskrnl
+    hal)
 
-add_dependencies(ramdisk psdk bugcodes)
-add_minicd_target(ramdisk reactos ramdisk.sys)
-add_livecd_target(ramdisk reactos/system32/drivers)
\ No newline at end of file
+add_cd_file(TARGET ramdisk DESTINATION reactos/system32/drivers NO_CAB)