[USBEHCI_NEW]
[reactos.git] / drivers / usb / usbehci_new / 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(usbehci SHARED
8 usbehci.cpp
9 hcd_controller.cpp
10 hardware.cpp
11 misc.cpp
12 purecall.cpp
13 hub_controller.cpp
14 memory_manager.cpp
15 usbehci.rc)
16
17 target_link_libraries(usbehci
18 libcntpr
19 stlport
20 ${PSEH_LIB})
21
22 if(MSVC)
23 set_target_properties(usbehci PROPERTIES COMPILE_FLAGS "/GR-")
24 else()
25 target_link_libraries(usbehci -lgcc)
26 set_target_properties(usbehci PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti")
27 endif(MSVC)
28
29 set_module_type(usbehci kernelmodedriver)
30 add_importlibs(usbehci ntoskrnl ks drmk hal)
31
32 add_cab_target(usbehci 2)