5bd4ecaab6c3d56db3ceb98ddfa27305b5e77ff2
[reactos.git] / reactos / drivers / usb / usbuhci / CMakeLists.txt
1
2 set_cpp()
3
4 remove_definitions(-D_WIN32_WINNT=0x502)
5 add_definitions(-D_WIN32_WINNT=0x600)
6
7 include_directories(
8 ${REACTOS_SOURCE_DIR}/lib/drivers/libusb)
9
10 add_library(usbuhci SHARED
11 usbuhci.cpp
12 usb_request.cpp
13 usb_queue.cpp
14 hardware.cpp
15 usbuhci.rc)
16
17 target_link_libraries(usbuhci
18 libusb
19 libcntpr
20 ${PSEH_LIB})
21
22 if(MSVC)
23 set_target_properties(usbuhci PROPERTIES COMPILE_FLAGS "/GR-")
24 else()
25 target_link_libraries(usbuhci -lgcc)
26 set_target_properties(usbuhci PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti")
27 endif(MSVC)
28
29 set_module_type(usbuhci kernelmodedriver)
30 add_importlibs(usbuhci ntoskrnl hal usbd)
31
32 add_cd_file(TARGET usbuhci DESTINATION reactos/system32/drivers NO_CAB FOR all)