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