reactos/drivers/usb/usbohci/CMakeLists.txt
Hermès Bélusca-Maïto 65ce146169 Create a branch for working on csrss and co.
svn path=/branches/ros-csrss/; revision=57561
2012-10-14 13:04:31 +00:00

37 lines
944 B
CMake

set_cpp()
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
include_directories(${REACTOS_SOURCE_DIR}/lib/drivers/libusb)
list(APPEND SOURCE
usbohci.cpp
usb_request.cpp
usb_queue.cpp
hardware.cpp)
add_library(usbohci SHARED
${SOURCE}
usbohci.rc)
target_link_libraries(usbohci
libusb
libcntpr
${PSEH_LIB})
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
if(MSVC)
#add_target_compile_flags(usbohci "/GR-")
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "/GR-")
else()
target_link_libraries(usbohci -lgcc)
#add_target_compile_flags(usbohci "-fno-exceptions -fno-rtti")
set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti")
endif()
set_module_type(usbohci kernelmodedriver)
add_importlibs(usbohci ntoskrnl hal usbd)
add_cd_file(TARGET usbohci DESTINATION reactos/system32/drivers NO_CAB FOR all)