From 03d0aa4f39f72d27fed75020d2a3e80413ae029a Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sat, 15 Feb 2020 09:45:38 +0800 Subject: No more version numbers scattered through the files. Added a debug screen for the visualization, which can be toggled by pressing B. Added version information for binaries for Windows. --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index e789ec8..32fc3c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.10.0) -project(QMidiPlayer C CXX) +project(QMidiPlayer VERSION 0.8.7 LANGUAGES C CXX) set(CMAKE_INCLUDE_CURRENT_DIR ON) @@ -22,6 +22,12 @@ if(UNIX) option(BUILD_PORTABLE "Instruct the built binary not to search system directories" OFF) endif() +add_definitions(-DAPP_VERSION=\"${PROJECT_VERSION}\") +add_definitions(-DPLUGIN_VERSION=\"${PROJECT_VERSION}\") +add_definitions(-DRC_VER_MAJOR=${PROJECT_VERSION_MAJOR}) +add_definitions(-DRC_VER_MINOR=${PROJECT_VERSION_MINOR}) +add_definitions(-DRC_VER_PATCH=${PROJECT_VERSION_PATCH}) + add_subdirectory(core) add_subdirectory(qmidiplayer-desktop) add_subdirectory(sample-plugin) -- cgit v1.2.3