* Properly add fbtusb. This fixes both gcc and msvc builds.

svn path=/trunk/; revision=56248
This commit is contained in:
Amine Khaldi 2012-03-27 16:36:53 +00:00
parent 5a911e8752
commit 6fcb5fd53c

View file

@ -1,18 +1,27 @@
include_directories(
BEFORE include
include)
include_directories(include)
add_library(fbtusb SHARED
list(APPEND SOURCE
fbtdev.c
fbtpnp.c
fbtpwr.c
fbtrwr.c
fbtusb.c
# fbtwmi.c
fbtusb.c)
add_library(fbtusb SHARED
${SOURCE}
fbtusb.rc)
allow_warnings(fbtusb)
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
if(MSVC)
#add_target_compile_flags(fbtusb "/Gz")
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "/Gz")
else()
#allow_warnings(fbtusb)
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error -mrtd -fno-builtin")
endif()
set_module_type(fbtusb kernelmodedriver)
add_importlibs(fbtusb ntoskrnl hal usbd)
add_cd_file(TARGET fbtusb DESTINATION reactos/system32/drivers FOR all)