mirror of
https://github.com/reactos/reactos.git
synced 2024-08-29 22:58:34 +00:00
28 lines
662 B
CMake
28 lines
662 B
CMake
|
|
include_directories(include)
|
|
|
|
list(APPEND SOURCE
|
|
fbtdev.c
|
|
fbtpnp.c
|
|
fbtpwr.c
|
|
fbtrwr.c
|
|
# fbtwmi.c
|
|
fbtusb.c
|
|
precomp.h)
|
|
|
|
add_library(fbtusb MODULE ${SOURCE} fbtusb.rc)
|
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
|
target_compile_options(fbtusb PRIVATE -Wno-unused-but-set-variable)
|
|
endif()
|
|
|
|
if(MSVC)
|
|
# Disable warning C4267: '=': conversion from 'size_t' to 'USHORT', possible loss of data
|
|
target_compile_options(fbtusb PRIVATE /wd4267)
|
|
endif()
|
|
|
|
set_module_type(fbtusb kernelmodedriver)
|
|
add_importlibs(fbtusb ntoskrnl hal usbd)
|
|
add_pch(fbtusb precomp.h SOURCE)
|
|
add_cd_file(TARGET fbtusb DESTINATION reactos/system32/drivers FOR all)
|