Add custom cmake target for installheaders
This will ensure the correct headers are generated before trying to install them.
This commit is contained in:
parent
71c2ff3105
commit
a71207434c
2 changed files with 12 additions and 6 deletions
2
Makefile
2
Makefile
|
|
@ -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 ../../../..
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue