mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:05:43 +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
|
@ -29,19 +29,21 @@ list(APPEND SOURCE
|
|||
setupcab.c
|
||||
stringtable.c
|
||||
stubs.c
|
||||
rpc.c
|
||||
setupapi_private.h
|
||||
${CMAKE_CURRENT_BINARY_DIR}/pnp_c.c)
|
||||
rpc.c)
|
||||
|
||||
list(APPEND PCH_SKIP_SOURCE
|
||||
${CMAKE_CURRENT_BINARY_DIR}/setupapi_stubs.c)
|
||||
|
||||
add_library(setupapi MODULE
|
||||
${SOURCE}
|
||||
${PCH_SKIP_SOURCE}
|
||||
${CMAKE_CURRENT_BINARY_DIR}/pnp_c.c
|
||||
setupapi.rc
|
||||
${CMAKE_CURRENT_BINARY_DIR}/setupapi_stubs.c
|
||||
${CMAKE_CURRENT_BINARY_DIR}/setupapi.def)
|
||||
|
||||
set_module_type(setupapi win32dll UNICODE)
|
||||
target_link_libraries(setupapi uuid wine ${PSEH_LIB})
|
||||
add_delay_importlibs(setupapi comdlg32 shell32 winspool.drv wintrust)
|
||||
add_importlibs(setupapi gdi32 comctl32 advapi32 user32 rpcrt4 version msvcrt kernel32 ntdll)
|
||||
add_pch(setupapi setupapi_private.h SOURCE)
|
||||
add_pch(setupapi setupapi_private.h "${PCH_SKIP_SOURCE}")
|
||||
add_cd_file(TARGET setupapi DESTINATION reactos/system32 FOR all)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue