mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[CMAKE] Implement PCH builds with target_precompile_headers. CORE-16905
This commit is contained in:
@@ -4,15 +4,17 @@ list(APPEND SOURCE
|
||||
fdo.c
|
||||
misc.c
|
||||
pdo.c
|
||||
serenum.c
|
||||
serenum.h)
|
||||
serenum.c)
|
||||
|
||||
list(APPEND PCH_SKIP_SOURCE
|
||||
guid.c)
|
||||
|
||||
add_library(serenum MODULE
|
||||
${SOURCE}
|
||||
guid.c
|
||||
${PCH_SKIP_SOURCE}
|
||||
serenum.rc)
|
||||
|
||||
add_pch(serenum serenum.h SOURCE)
|
||||
add_pch(serenum serenum.h "${PCH_SKIP_SOURCE}")
|
||||
set_module_type(serenum kernelmodedriver)
|
||||
add_importlibs(serenum ntoskrnl hal)
|
||||
add_cd_file(TARGET serenum DESTINATION reactos/system32/drivers FOR all)
|
||||
|
||||
@@ -11,15 +11,17 @@ list(APPEND SOURCE
|
||||
pnp.c
|
||||
power.c
|
||||
rw.c
|
||||
serial.c
|
||||
serial.h)
|
||||
serial.c)
|
||||
|
||||
list(APPEND PCH_SKIP_SOURCE
|
||||
guid.c)
|
||||
|
||||
add_library(serial MODULE
|
||||
${SOURCE}
|
||||
guid.c
|
||||
${PCH_SKIP_SOURCE}
|
||||
serial.rc)
|
||||
|
||||
set_module_type(serial kernelmodedriver)
|
||||
add_importlibs(serial ntoskrnl hal)
|
||||
add_pch(serial serial.h SOURCE)
|
||||
add_pch(serial serial.h "${PCH_SKIP_SOURCE}")
|
||||
add_cd_file(TARGET serial DESTINATION reactos/system32/drivers FOR all)
|
||||
|
||||
Reference in New Issue
Block a user