mirror of
https://github.com/reactos/reactos.git
synced 2026-06-08 08:52:59 +08:00
[CMAKE] Implement PCH builds with target_precompile_headers. CORE-16905
This commit is contained in:
committed by
Victor Perevertkin
parent
4cd7b3a3df
commit
139a3d6661
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user