mirror of
https://github.com/reactos/reactos.git
synced 2025-08-11 13:25:36 +00:00
[CMAKE] Implement PCH builds with target_precompile_headers. CORE-16905
This commit is contained in:
parent
4cd7b3a3df
commit
139a3d6661
123 changed files with 874 additions and 644 deletions
|
@ -1,16 +1,18 @@
|
|||
|
||||
list(APPEND SOURCE
|
||||
kbdclass.c
|
||||
misc.c
|
||||
kbdclass.h)
|
||||
misc.c)
|
||||
|
||||
list(APPEND PCH_SKIP_SOURCE
|
||||
guid.c)
|
||||
|
||||
add_library(kbdclass MODULE
|
||||
${SOURCE}
|
||||
guid.c
|
||||
${PCH_SKIP_SOURCE}
|
||||
kbdclass.rc)
|
||||
|
||||
set_module_type(kbdclass kernelmodedriver)
|
||||
add_pch(kbdclass kbdclass.h SOURCE)
|
||||
add_pch(kbdclass kbdclass.h "${PCH_SKIP_SOURCE}")
|
||||
target_link_libraries(kbdclass ${PSEH_LIB})
|
||||
add_importlibs(kbdclass ntoskrnl hal)
|
||||
add_cd_file(TARGET kbdclass DESTINATION reactos/system32/drivers NO_CAB FOR all)
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
|
||||
list(APPEND SOURCE
|
||||
misc.c
|
||||
mouclass.c
|
||||
mouclass.h)
|
||||
mouclass.c)
|
||||
|
||||
list(APPEND PCH_SKIP_SOURCE
|
||||
guid.c)
|
||||
|
||||
add_library(mouclass MODULE
|
||||
${SOURCE}
|
||||
guid.c
|
||||
${PCH_SKIP_SOURCE}
|
||||
mouclass.rc)
|
||||
|
||||
set_module_type(mouclass kernelmodedriver)
|
||||
target_link_libraries(mouclass ${PSEH_LIB})
|
||||
add_importlibs(mouclass ntoskrnl hal)
|
||||
add_pch(mouclass mouclass.h SOURCE)
|
||||
add_pch(mouclass mouclass.h "${PCH_SKIP_SOURCE}")
|
||||
add_cd_file(TARGET mouclass DESTINATION reactos/system32/drivers FOR all)
|
||||
add_registry_inf(mouclass_reg.inf)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue