From 7e21f9da2b916aa877a77e010c8878f794daa2d5 2012-01-19 14:39:25 From: Michal Klocek Date: 2012-01-19 14:39:25 Subject: [PATCH] Improved config handling * adds common.pri - path setting and compilation options * adds example.pri - common compilation options for all examples --- diff --git a/common.pri b/common.pri new file mode 100644 index 0000000..9185773 --- /dev/null +++ b/common.pri @@ -0,0 +1,6 @@ +CHART_BUILD_HEADER_DIR = $$PWD/include +CHART_BUILD_LIB_DIR = $$PWD/lib +CHART_BUILD_DIR = $$PWD/build +CHART_BUILD_BIN = $$PWD/bin +CONFIG+=build_examples + diff --git a/example/example.pri b/example/example.pri new file mode 100644 index 0000000..258cb9a --- /dev/null +++ b/example/example.pri @@ -0,0 +1,12 @@ +build_examples:{ + message('Internal build within charts core source tree') + INCLUDEPATH += $$CHART_BUILD_HEADER_DIR + LIBS += -L $$CHART_BUILD_LIB_DIR -Wl,-rpath,$$CHART_BUILD_LIB_DIR + DESTDIR = $$CHART_BUILD_BIN + CONFIG(debug, debug|release) { + LIBS += -lQtCommercialChartd +} else { + LIBS += -lQtCommercialChart +} + +}