[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 usbehci.rc)
12
13 target_link_libraries(usbehci
14 libcntpr
15 stlport
16 ${PSEH_LIB})
17
18 if(MSVC)
19 set_target_properties(usbehci PROPERTIES COMPILE_FLAGS "/GR-")
20 else()
21 target_link_libraries(usbehci -lgcc)
22 set_target_properties(usbehci PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti")
23 endif(MSVC)
24
25 set_module_type(usbehci kernelmodedriver)
26 add_importlibs(usbehci ntoskrnl ks drmk hal)
27
28 add_cab_target(usbehci 2)