mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
23373acbb9
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.
20 lines
437 B
CMake
20 lines
437 B
CMake
|
|
spec2def(pciidex.sys pciidex.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
fdo.c
|
|
miniport.c
|
|
misc.c
|
|
pciidex.c
|
|
pdo.c
|
|
pciidex.h)
|
|
|
|
add_library(pciidex MODULE
|
|
${SOURCE}
|
|
pciidex.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/pciidex.def)
|
|
|
|
add_pch(pciidex pciidex.h SOURCE)
|
|
set_module_type(pciidex kernelmodedriver)
|
|
add_importlibs(pciidex ntoskrnl)
|
|
add_cd_file(TARGET pciidex DESTINATION reactos/system32/drivers NO_CAB FOR all)
|