mirror of
https://github.com/reactos/reactos.git
synced 2024-08-30 15:18:33 +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.
21 lines
437 B
CMake
21 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)
|