diff --git a/examples/gdpbarchart/gdpbarchart.pro b/examples/gdpbarchart/gdpbarchart.pro index da90137..754e7b3 100644 --- a/examples/gdpbarchart/gdpbarchart.pro +++ b/examples/gdpbarchart/gdpbarchart.pro @@ -9,9 +9,8 @@ SOURCES += main.cpp\ HEADERS += widget.h !mac { - DIR = $$PWD - - win32:{DIR = $$replace(DIR, "/","\\")} + FILE = $$PWD/gdpData + win32:{FILE = $$replace(FILE, "/","\\")} # TODO: QMAKE_POST_LINK does not work on mac; how to copy the data file? - QMAKE_POST_LINK += $$QMAKE_COPY $$DIR/gdpData $$CHART_BUILD_BIN_DIR + QMAKE_POST_LINK += $$QMAKE_COPY $$FILE $$CHART_BUILD_BIN_DIR }