Build: use props file for versioning
This commit is contained in:
parent
98ce867104
commit
a54247125f
4 changed files with 11 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue