mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 21:48:19 +00:00
[FBTUSB]
* Properly add fbtusb. This fixes both gcc and msvc builds. svn path=/trunk/; revision=56248
This commit is contained in:
parent
5a911e8752
commit
6fcb5fd53c
1 changed files with 15 additions and 6 deletions
|
@ -1,18 +1,27 @@
|
||||||
|
|
||||||
include_directories(
|
include_directories(include)
|
||||||
BEFORE include
|
|
||||||
include)
|
|
||||||
|
|
||||||
add_library(fbtusb SHARED
|
list(APPEND SOURCE
|
||||||
fbtdev.c
|
fbtdev.c
|
||||||
fbtpnp.c
|
fbtpnp.c
|
||||||
fbtpwr.c
|
fbtpwr.c
|
||||||
fbtrwr.c
|
fbtrwr.c
|
||||||
fbtusb.c
|
|
||||||
# fbtwmi.c
|
# fbtwmi.c
|
||||||
|
fbtusb.c)
|
||||||
|
|
||||||
|
add_library(fbtusb SHARED
|
||||||
|
${SOURCE}
|
||||||
fbtusb.rc)
|
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)
|
set_module_type(fbtusb kernelmodedriver)
|
||||||
add_importlibs(fbtusb ntoskrnl hal usbd)
|
add_importlibs(fbtusb ntoskrnl hal usbd)
|
||||||
add_cd_file(TARGET fbtusb DESTINATION reactos/system32/drivers FOR all)
|
add_cd_file(TARGET fbtusb DESTINATION reactos/system32/drivers FOR all)
|
||||||
|
|
Loading…
Reference in a new issue