mirror of
https://github.com/hyprwm/hyprwayland-scanner.git
synced 2024-11-08 06:35:58 +01:00
16 lines
501 B
CMake
16 lines
501 B
CMake
|
@PACKAGE_INIT@
|
||
|
|
||
|
set_and_check(BINDIR "@PACKAGE_CMAKE_INSTALL_BINDIR@")
|
||
|
|
||
|
function(hyprwayland_protocol targets protoName protoPath outputPath)
|
||
|
add_custom_command(
|
||
|
OUTPUT "${outputPath}/${protoName}.cpp"
|
||
|
COMMAND "${BINDIR}/hyprwayland-scanner" "${protoPath}/${protoName}.xml" "${outputPath}"
|
||
|
)
|
||
|
foreach(target ${targets})
|
||
|
target_sources(${target} PRIVATE "${outputPath}/${protoName}.cpp")
|
||
|
endforeach()
|
||
|
endfunction()
|
||
|
|
||
|
check_required_components(hyprwayland-scanner)
|