1 2include_directories(../../inc) 3spec2def(classpnp.sys classpnp.spec ADD_IMPORTLIB) 4 5add_definitions( 6 -DCLASS_GLOBAL_BREAK_ON_LOST_IRPS=0 7 -DCLASS_GLOBAL_SECONDS_TO_WAIT_FOR_SYNCHRONOUS_SRB=100 8 -DCLASS_GLOBAL_USE_DELAYED_RETRY=1 9 -DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT=0 10 -DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFER_SIZE=512 11 -DCLASS_GLOBAL_BUFFERED_DEBUG_PRINT_BUFFERS=512) 12 13list(APPEND SOURCE 14 autorun.c 15 class.c 16 classwmi.c 17 clntirp.c 18 create.c 19 data.c 20 debug.c 21 dictlib.c 22 lock.c 23 obsolete.c 24 power.c 25 retry.c 26 utils.c 27 xferpkt.c 28 classp.h) 29 30add_library(classpnp MODULE 31 ${SOURCE} 32 guid.c 33 class.rc 34 ${CMAKE_CURRENT_BINARY_DIR}/classpnp.def) 35 36add_pch(classpnp classp.h SOURCE) 37target_link_libraries(classpnp ${PSEH_LIB} libcntpr) 38set_module_type(classpnp kernelmodedriver) 39add_importlibs(classpnp hal ntoskrnl) 40add_cd_file(TARGET classpnp DESTINATION reactos/system32/drivers NO_CAB FOR all) 41