build: Add missing check for glibmm.

Also, list the glibmm version in config.h.
This commit is contained in:
Uwe Hermann 2017-05-26 17:56:08 +02:00
parent 6579ca9227
commit d93ac5e877
2 changed files with 6 additions and 0 deletions

View File

@ -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.

View File

@ -35,4 +35,6 @@
/* Platform properties */
#cmakedefine HAVE_UNALIGNED_LITTLE_ENDIAN_ACCESS
#define PV_GLIBMM_VERSION "@PV_GLIBMM_VERSION@"
#endif