]> granicus.if.org Git - openjpeg/commitdiff
[trunk] Provide #ifdef blockers for OpenJPEG Version
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Mon, 28 Apr 2014 07:32:35 +0000 (07:32 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Mon, 28 Apr 2014 07:32:35 +0000 (07:32 +0000)
Fixes issue 342

src/lib/openjp2/opj_config.h.cmake.in

index 2f5311b87cd56f256833a21056531a2e7b4a9a5d..dd8748d73fc87bb025627b3fdd17f9c14c89dfb3 100644 (file)
@@ -1,2 +1,12 @@
 /* create opj_config.h for CMake */
 #cmakedefine OPJ_HAVE_STDINT_H                 @OPJ_HAVE_STDINT_H@
+
+/*--------------------------------------------------------------------------*/
+/* OpenJPEG Versioning                                                      */
+
+/* Version number. */
+#define OPENJPEG_VERSION_MAJOR @OPENJPEG_VERSION_MAJOR@
+#define OPENJPEG_VERSION_MINOR @OPENJPEG_VERSION_MINOR@
+#define OPENJPEG_VERSION_BUILD @OPENJPEG_VERSION_BUILD@
+#define OPENJPEG_VERSION "@OPENJPEG_VERSION@"
+#define OPENJPEG_SOVERSION "@OPENJPEG_SOVERSION@"