mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 13:23:51 +00:00
![Jérôme Gardou](/assets/img/avatar_default.png)
There is no need to compile our DLLs as shared libraries since we are managing symbols exports and imports through spec files. On my system, this reduces the configure-time by a factor of two.
24 lines
530 B
CMake
24 lines
530 B
CMake
|
|
add_definitions(-DDEBUG_MODE)
|
|
add_definitions(-DNTDDI_VERSION=0x05020400)
|
|
include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl/include)
|
|
|
|
list(APPEND SOURCE
|
|
fdo.c
|
|
hub_fdo.c
|
|
misc.c
|
|
pdo.c
|
|
usbhub.c
|
|
usbhub.h)
|
|
|
|
add_library(usbhub MODULE
|
|
${SOURCE}
|
|
guid.c
|
|
usbhub.rc)
|
|
|
|
target_link_libraries(usbhub ${PSEH_LIB})
|
|
set_module_type(usbhub kernelmodedriver)
|
|
add_importlibs(usbhub ntoskrnl hal usbd)
|
|
add_pch(usbhub usbhub.h SOURCE)
|
|
add_cd_file(TARGET usbhub DESTINATION reactos/system32/drivers NO_CAB FOR all)
|