build: use PCH to reduce compile time (#3095)
This commit is contained in:
parent
4eecb8bffc
commit
8e9f010ee0
3 changed files with 35 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ endif()
|
|||
|
||||
include_directories(
|
||||
.
|
||||
"src/"
|
||||
"subprojects/wlroots/include/"
|
||||
"subprojects/wlroots/build/include/"
|
||||
"subprojects/udis86/"
|
||||
|
|
@ -168,6 +169,10 @@ set(CPACK_PROJECT_NAME ${PROJECT_NAME})
|
|||
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
|
||||
include(CPack)
|
||||
|
||||
message(STATUS "Setting precompiled headers")
|
||||
|
||||
target_precompile_headers(Hyprland PRIVATE $<$<COMPILE_LANGUAGE:CXX>:src/pch/pch.hpp>)
|
||||
|
||||
message(STATUS "Setting link libraries")
|
||||
|
||||
target_link_libraries(Hyprland rt PkgConfig::deps)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue