Skip to content

Commit

Permalink
display version number of Dexed in its AboutBox
Browse files Browse the repository at this point in the history
  • Loading branch information
FulopNandor committed May 22, 2024
1 parent 755544f commit 7ed714d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ set(DEXED_JUCE_PATH "${CMAKE_SOURCE_DIR}/libs/JUCE" CACHE STRING "Path to JUCE l
add_subdirectory(${DEXED_JUCE_PATH} ${CMAKE_BINARY_DIR}/JUCE EXCLUDE_FROM_ALL)
add_subdirectory(libs/clap-juce-extensions EXCLUDE_FROM_ALL)


# Adding the new "version.h" file created from "version.h.in" file, containing definition of DEXED_ID needed in Dexed.h
configure_file(version.h.in version.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR})

#Adds all the module sources so they appear correctly in the IDE
set_property(GLOBAL PROPERTY USE_FOLDERS YES)
Expand Down
3 changes: 3 additions & 0 deletions Source/Dexed.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
#ifndef DEXED_H_INCLUDED
#define DEXED_H_INCLUDED

// get value of the DEXED_ID from the PROJECT_VERSION from the main CMakeLists.txt
#include "version.h"

void dexed_trace(const char *source, const char *fmt, ...);

#define __QUOTE(name) #name
Expand Down
1 change: 1 addition & 0 deletions version.h.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#define DEXED_ID "@PROJECT_VERSION@"

0 comments on commit 7ed714d

Please sign in to comment.