-spec2def(hidclass.sys hidclass.spec)
+spec2def(hidclass.sys hidclass.spec ADD_IMPORTLIB)
list(APPEND SOURCE
fdo.c
hidclass.c
- hidclass.rc
pdo.c
- ${CMAKE_CURRENT_BINARY_DIR}/hidclass.def)
-
-add_library(hidclass SHARED ${SOURCE})
+ precomp.h)
-set_entrypoint(hidclass 0)
-set_subsystem(hidclass native)
-set_target_properties(hidclass PROPERTIES SUFFIX ".sys")
+add_library(hidclass SHARED
+ ${SOURCE}
+ guid.c
+ hidclass.rc
+ ${CMAKE_CURRENT_BINARY_DIR}/hidclass.def)
+set_module_type(hidclass kernelmodedriver ENTRYPOINT 0)
add_importlibs(hidclass ntoskrnl hidparse hal)
-add_importlib_target(hidclass.spec hidclass.sys)
-
-add_cd_file(TARGET hidclass DESTINATION reactos/system32/drivers NO_CAB FOR all)
\ No newline at end of file
+add_pch(hidclass precomp.h SOURCE)
+add_cd_file(TARGET hidclass DESTINATION reactos/system32/drivers NO_CAB FOR all)