Build: use props file for versioning

This commit is contained in:
Mihai Fufezan 2023-01-06 16:21:42 +02:00
parent 98ce867104
commit a54247125f
No known key found for this signature in database
GPG key ID: 5899325F2F120900
4 changed files with 11 additions and 2 deletions

View file

@ -1,6 +1,12 @@
cmake_minimum_required(VERSION 3.4)
# Get version
file(READ ${CMAKE_CURRENT_SOURCE_DIR}/props.json PROPS)
string(JSON VER GET ${PROPS} version)
project(Hyprland
DESCRIPTION "A Modern C++ Wayland Compositor"
VERSION ${VER}
)
set(CMAKE_MESSAGE_LOG_LEVEL "STATUS")