[USB-BRINGUP-TRUNK]
[reactos.git] / drivers / usb / usbohci / 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(usbohci SHARED
8 usbohci.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 usbohci.rc)
19
20 target_link_libraries(usbohci
21 libcntpr
22 stlport
23 ${PSEH_LIB})
24
25 if(MSVC)
26 set_target_properties(usbohci PROPERTIES COMPILE_FLAGS "/GR-")
27 else()
28 target_link_libraries(usbohci -lgcc)
29 set_target_properties(usbohci PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti")
30 endif(MSVC)
31
32 set_module_type(usbohci kernelmodedriver)
33 add_importlibs(usbohci ntoskrnl ks drmk hal usbd)
34
35 add_cd_file(TARGET usbohci DESTINATION reactos/system32/drivers NO_CAB FOR all)