../../ does not always work. VPATH builds like distcheck have a different
dir layout.
ref T2028
elm_suite_CPPFLAGS = \
-DTESTS_BUILD_DIR=\"${top_builddir}/src/tests\" \
+ -DELM_IMAGE_DATA_DIR=\"${top_srcdir}/data\" \
-I$(top_srcdir)/src/lib \
-I$(top_builddir)/src/lib \
@CHECK_CFLAGS@ \
elm_cxx_suite_SOURCES = elm_cxx_suite.cc
elm_cxx_suite_CPPFLAGS = \
-DTESTS_BUILD_DIR=\"${top_builddir}/src/tests\" \
+ -DELM_IMAGE_DATA_DIR=\"${top_srcdir}/data\" \
-I$(top_srcdir)/src/lib \
-I$(top_builddir)/src/lib \
@CHECK_CFLAGS@ \
#include <Elementary.h>
#include "elm_suite.h"
-static const char pathfmt[] = "../../data/images/icon_%02d.png";
+static const char pathfmt[] = ELM_IMAGE_DATA_DIR"/images/icon_%02d.png";
static const char invalid[] = "thereisnosuchimage.png";
#define MAX_IMAGE_ID 23