From 0daec37113d0c550d21722082108a7e4f041d47a Mon Sep 17 00:00:00 2001 From: Adenilson Cavalcanti Date: Tue, 23 Oct 2012 17:20:08 -0200 Subject: [PATCH] The example simpleCpu compilation was failing, thanks to a) Missing include/import in mainApple (compiler failed to find definition of glGetError() and associated enums) b) Missing generation of string-fied shader for inclusion into the source code files. This patch fixes both issues. Signed-off-by: Adenilson Cavalcanti --- examples/simpleCpu/CMakeLists.txt | 2 ++ examples/simpleCpu/mainApple.mm | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/simpleCpu/CMakeLists.txt b/examples/simpleCpu/CMakeLists.txt index 821a41cf..b4883e8b 100644 --- a/examples/simpleCpu/CMakeLists.txt +++ b/examples/simpleCpu/CMakeLists.txt @@ -101,6 +101,8 @@ if(APPLE) _add_glut_executable(simpleCpu mainApple.mm simpleCpuSubdivision.cpp + ${SHADER_FILES} + ${INC_FILES} ) else() _add_glut_executable(simpleCpu diff --git a/examples/simpleCpu/mainApple.mm b/examples/simpleCpu/mainApple.mm index 412a7c1a..11b65c8a 100644 --- a/examples/simpleCpu/mainApple.mm +++ b/examples/simpleCpu/mainApple.mm @@ -1,7 +1,8 @@ #import #import #import - +#import +#import // // Hooks back into the example code //