[USB-BRINGUP-TRUNK]
[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 usb_device.cpp
10 usb_request.cpp
11 usb_queue.cpp
12 hcd_controller.cpp
13 hardware.cpp
14 misc.cpp
15 purecall.cpp
16 hub_controller.cpp
17 memory_manager.cpp
18 usbehci.rc)
19
20 target_link_libraries(usbehci
21 libcntpr
22 stlport
23 ${PSEH_LIB})
24
25 if(MSVC)
26 set_target_properties(usbehci PROPERTIES COMPILE_FLAGS "/GR-")
27 else()
28 target_link_libraries(usbehci -lgcc)
29 set_target_properties(usbehci PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti")
30 endif(MSVC)
31
32 set_module_type(usbehci kernelmodedriver)
33 add_importlibs(usbehci ntoskrnl ks drmk hal)
34
35 add_cd_file(TARGET usbehci DESTINATION reactos/system32/drivers NO_CAB FOR all)