From: Uwe Hermann Date: Fri, 26 May 2017 15:56:08 +0000 (+0200) Subject: build: Add missing check for glibmm. X-Git-Tag: pulseview-0.4.0~83 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d93ac5e8770e9e5c7bf64d0ed7961357e04370ba;p=pulseview.git build: Add missing check for glibmm. Also, list the glibmm version in config.h. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 45055ab8..31b45ef5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,6 +55,8 @@ endif() #= Dependencies #------------------------------------------------------------------------------- +list(APPEND PKGDEPS glibmm-2.4>=2.28.0) + list(APPEND PKGDEPS libsigrokcxx>=0.4.0) if(ENABLE_DECODE) @@ -153,6 +155,8 @@ set(PV_TITLE PulseView) set(PV_DESCRIPTION "A GUI for sigrok") set(PV_VERSION_STRING "0.4.0") +set(PV_GLIBMM_VERSION ${PKGDEPS_glibmm-2.4_VERSION}) + include(GetGitRevisionDescription) # Append the revision hash unless we are exactly on a tagged release. diff --git a/config.h.in b/config.h.in index 8da6dafb..8148ce1f 100644 --- a/config.h.in +++ b/config.h.in @@ -35,4 +35,6 @@ /* Platform properties */ #cmakedefine HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS +#define PV_GLIBMM_VERSION "@PV_GLIBMM_VERSION@" + #endif