Commit ef57c9d9 authored by Jussi Lindgren's avatar Jussi Lindgren
Browse files

Application: Designer will now show version info in the title bar

- OV version is now exposed to the source code using preprocessor tokens
parent 4c0910e4
......@@ -12,7 +12,7 @@ if(POLICY CMP0048)
cmake_policy(SET CMP0048 OLD)
endif()
PROJECT(OpenVIBE)
PROJECT(OpenViBE)
# These versions are used by the subprojects by default.
# If you wish to maintain specific version numbers for a subproject, please do so in the projects CMakeLists.txt
......@@ -34,6 +34,11 @@ IF(OPENMP_FOUND)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
ENDIF(OPENMP_FOUND)
ADD_DEFINITIONS("-DOV_PROJECT_NAME=\"${PROJECT_NAME}\"")
ADD_DEFINITIONS("-DOV_VERSION_MAJOR=\"${OV_GLOBAL_VERSION_MAJOR}\"")
ADD_DEFINITIONS("-DOV_VERSION_MINOR=\"${OV_GLOBAL_VERSION_MINOR}\"")
ADD_DEFINITIONS("-DOV_VERSION_PATCH=\"${OV_GLOBAL_VERSION_PATCH}\"")
IF(WIN32)
ADD_DEFINITIONS("-DNOMINMAX -DBOOST_ALL_NO_LIB")
# Switch /arch:SSE2 enables vectorization. Remove if your CPU/compiler doesn't support it.
......
......@@ -2229,7 +2229,7 @@ Do you want to continue the execution?&lt;/b&gt;</property>
<property name="height_request">240</property>
<property name="can_focus">False</property>
<property name="events">GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK | GDK_STRUCTURE_MASK</property>
<property name="title" translatable="yes">OpenViBE Designer</property>
<property name="title" translatable="yes">OpenViBE Designer v${PROJECT_VERSION}</property>
<property name="window_position">center</property>
<property name="default_width">1024</property>
<property name="default_height">768</property>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment