02512e7b7dd83c6d975aaecade8f3b562eaa35f7
[reactos.git] / reactos / 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 include_directories(
8 ${REACTOS_SOURCE_DIR}/lib/drivers/libusb)
9
10 add_library(usbohci SHARED
11 usbohci.cpp
12 usb_request.cpp
13 usb_queue.cpp
14 hardware.cpp
15 usbohci.rc)
16
17 target_link_libraries(usbohci
18 libusb
19 libcntpr
20 ${PSEH_LIB})
21
22 if(MSVC)
23 set_target_properties(usbohci PROPERTIES COMPILE_FLAGS "/GR-")
24 else()
25 target_link_libraries(usbohci -lgcc)
26 set_target_properties(usbohci PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti")
27 endif(MSVC)
28
29 set_module_type(usbohci kernelmodedriver)
30 add_importlibs(usbohci ntoskrnl hal usbd)
31
32 add_cd_file(TARGET usbohci DESTINATION reactos/system32/drivers NO_CAB FOR all)