<include file="../../../build/bakefiles/common_samples.bkl"/>
- <exe id="cube" template="wx_sample" template_append="wx_append">
+ <if cond="OUT_OF_TREE_MAKEFILES=='1'">
+ <set var="USE_OPENGL">1</set>
+ </if>
+
+ <exe id="cube" template="wx_sample" template_append="wx_append" cond="USE_OPENGL=='1'">
<sources>cube.cpp</sources>
<wx-lib>gl</wx-lib>
<wx-lib>core</wx-lib>