[USBEHCI_NEW]
[reactos.git] / drivers / usb / usbehci_new / CMakeLists.txt
1
2 set_cpp()
3
4 remove_definitions(-D_WIN32_WINNT=0x502)
5 add_definitions(-D_WIN32_WINNT=0x600)
6
7 add_library(usbehci SHARED
8 usbehci.cpp
9 hcd_controller.cpp
10 hardware.cpp
11 misc.cpp
12 usbehci.rc)
13
14 target_link_libraries(usbehci
15 libcntpr
16 stlport
17 ${PSEH_LIB})
18
19 if(MSVC)
20 set_target_properties(usbehci PROPERTIES COMPILE_FLAGS "/GR-")
21 else()
22 target_link_libraries(usbehci -lgcc)
23 set_target_properties(usbehci PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti")
24 endif(MSVC)
25
26 set_module_type(usbehci kernelmodedriver)
27 add_importlibs(usbehci ntoskrnl ks drmk hal)
28
29 add_cab_target(usbehci 2)