[CMAKE] Use modules instead of shared libraries

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.
This commit is contained in:
Jérôme Gardou 2019-03-20 14:19:48 +01:00 committed by Jérôme Gardou
parent 050db4facb
commit 23373acbb9
544 changed files with 566 additions and 553 deletions

View file

@ -5,7 +5,7 @@ list(APPEND SOURCE
pnp.c
processr.h)
add_library(processr SHARED ${SOURCE} processr.rc)
add_library(processr MODULE ${SOURCE} processr.rc)
set_module_type(processr kernelmodedriver)
add_importlibs(processr hal ntoskrnl)
add_pch(processr processr.h SOURCE)