aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2020-02-15 09:45:38 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2020-02-15 09:45:38 +0800
commit03d0aa4f39f72d27fed75020d2a3e80413ae029a (patch)
tree4da998bf1df1a2c1463858d13e372d6fb0bbbff4 /CMakeLists.txt
parentbaa48d526c96a55c7c8caeb8fc5e379ef8afed10 (diff)
downloadQMidiPlayer-03d0aa4f39f72d27fed75020d2a3e80413ae029a.tar.xz
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.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
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)