1 2include_directories(include) 3 4list(APPEND SOURCE 5 fbtdev.c 6 fbtpnp.c 7 fbtpwr.c 8 fbtrwr.c 9# fbtwmi.c 10 fbtusb.c 11 precomp.h) 12 13add_library(fbtusb MODULE ${SOURCE} fbtusb.rc) 14 15if(CMAKE_C_COMPILER_ID STREQUAL "GNU") 16 target_compile_options(fbtusb PRIVATE -Wno-unused-but-set-variable) 17endif() 18 19if(MSVC) 20 # Disable warning C4267: '=': conversion from 'size_t' to 'USHORT', possible loss of data 21 target_compile_options(fbtusb PRIVATE /wd4267) 22endif() 23 24set_module_type(fbtusb kernelmodedriver) 25add_importlibs(fbtusb ntoskrnl hal usbd) 26add_pch(fbtusb precomp.h SOURCE) 27add_cd_file(TARGET fbtusb DESTINATION reactos/system32/drivers FOR all) 28