[CMAKE]
[reactos.git] / msc.cmake
index 7ffb866..a256263 100644 (file)
--- a/msc.cmake
+++ b/msc.cmake
@@ -75,6 +75,13 @@ macro(set_module_type MODULE TYPE)
                target_link_libraries(${MODULE} mingw_common mingw_dllmain)\r
         add_linkerflag(${MODULE} "/DLL")\r
     endif()\r
+       if(${TYPE} MATCHES kernelmodedriver)\r
+           set_target_properties(${MODULE} PROPERTIES SUFFIX ".sys")\r
+           set_entrypoint(${MODULE} DriverEntry@8)\r
+               set_subsystem(${MODULE} native)\r
+        set_image_base(${MODULE} 0x00010000)\r
+               add_dependencies(${MODULE} bugcodes)\r
+       endif()\r
 \r
 endmacro()\r
 \r