aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
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)