[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
123 changed files with 874 additions and 644 deletions

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)