[CMAKE] Implement PCH builds with target_precompile_headers. CORE-16905

This commit is contained in:
Amine Khaldi 2020-05-09 22:37:40 +01:00 committed by Victor Perevertkin
parent 4cd7b3a3df
commit 139a3d6661
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
123 changed files with 874 additions and 644 deletions

View file

@ -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)

View file

@ -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)