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