reactos/drivers/bluetooth/fbtusb/CMakeLists.txt
Jérôme Gardou 23373acbb9 [CMAKE] Use modules instead of shared libraries
There is no need to compile our DLLs as shared libraries since we are
managing symbols exports and imports through spec files.

On my system, this reduces the configure-time by a factor of two.
2019-04-06 17:43:38 +02:00

23 lines
469 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(NOT MSVC)
add_target_compile_flags(fbtusb "-Wno-unused-but-set-variable")
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)