Add custom cmake target for installheaders

This will ensure the correct headers are generated before trying to
install them.
This commit is contained in:
zjeffer
2024-05-22 00:02:01 +02:00
committed by Mihai Fufezan
parent 71c2ff3105
commit a71207434c
2 changed files with 12 additions and 6 deletions

View File

@@ -53,6 +53,8 @@ installheaders:
mkdir -p ${PREFIX}/include/hyprland/wlr
mkdir -p ${PREFIX}/share/pkgconfig
cmake --build ./build --config Release --target generate-protocol-headers
find src -name '*.h*' -print0 | cpio --quiet -0dump ${PREFIX}/include/hyprland
cd subprojects/wlroots-hyprland/include/wlr && find . -name '*.h*' -print0 | cpio --quiet -0dump ${PREFIX}/include/hyprland/wlr && cd ../../../..
cd subprojects/wlroots-hyprland/build/include && find . -name '*.h*' -print0 | cpio --quiet -0dump ${PREFIX}/include/hyprland/wlr && cd ../../../..