All pastes #125818 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-08-10 22:52 UTC
rendered paste body
SOURCES += main.c
TARGET = calccomms
TICABLES_MINVERSION = 0.1.3
HAVE_TICABLES = $$system(pkg-config --atleast-version=$$TICABLES_MINVERSION ticables2 && echo yes || echo no)
!equals(HAVE_TICABLES,yes):error(libticables2 $$TICABLES_MINVERSION or higher required.)
PKGCONFIG_CFLAGS += $$system(pkg-config --cflags ticables2)
LIBS += $$system(pkg-config --libs ticables2)
CXXFLAGS = $$(CXXFLAGS)
isEmpty(CXXFLAGS) {
   debug {
     CXXFLAGS = -Os -g
   } else {
     CXXFLAGS = -Os -s -fomit-frame-pointer
   }
 }
QMAKE_CXXFLAGS_DEBUG = $$CXXFLAGS -Wno-non-virtual-dtor $$PKGCONFIG_CFLAGS
QMAKE_CXXFLAGS_RELEASE = $$CXXFLAGS -Wno-non-virtual-dtor $$PKGCONFIG_CFLAGS

CFLAGS = $$(CFLAGS)
isEmpty(CFLAGS) {
   debug {
     CFLAGS = -Os -g
   } else {
     CFLAGS = -Os -s -fomit-frame-pointer
   }
 }
QMAKE_CFLAGS_DEBUG = $$CFLAGS -Wno-non-virtual-dtor $$PKGCONFIG_CFLAGS
QMAKE_CFLAGS_RELEASE = $$CFLAGS -Wno-non-virtual-dtor $$PKGCONFIG_CFLAGS