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