[CMAKE]
[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 include_directories(${REACTOS_SOURCE_DIR}/lib/drivers/libusb)
8
9 list(APPEND SOURCE
10 usbehci.cpp
11 usb_request.cpp
12 usb_queue.cpp
13 hardware.cpp)
14
15 add_library(usbehci SHARED
16 ${SOURCE}
17 usbehci.rc)
18
19 target_link_libraries(usbehci
20 libusb
21 libcntpr
22 ${PSEH_LIB})
23
24 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
25 if(MSVC)
26 #add_target_compile_flags(usbehci "/GR-")
27 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "/GR-")
28 else()
29 target_link_libraries(usbehci -lgcc)
30 #add_target_compile_flags(usbehci "-fno-exceptions -fno-rtti")
31 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti")
32 endif()
33
34 set_module_type(usbehci kernelmodedriver)
35 add_importlibs(usbehci ntoskrnl hal usbd)
36
37 add_cd_file(TARGET usbehci DESTINATION reactos/system32/drivers NO_CAB FOR all)