fix CMake dependencies for shader string in mainApple.mm

fix missing includes

fixes #81
This commit is contained in:
manuelk 2012-12-12 12:28:26 -08:00
parent c9e020ade7
commit 6a8f58b65e
2 changed files with 14 additions and 11 deletions

View File

@ -98,17 +98,19 @@ foreach(shader_file ${SHADER_FILES})
endforeach()
if(APPLE)
_add_glut_executable(simpleCpu
mainApple.mm
simpleCpuSubdivision.cpp
)
_add_glut_executable(simpleCpu
mainApple.mm
simpleCpuSubdivision.cpp
${SHADER_FILES}
${INC_FILES}
)
else()
_add_glut_executable(simpleCpu
simpleCpuSubdivision.cpp
mainGlut.cpp
${SHADER_FILES}
${INC_FILES}
)
_add_glut_executable(simpleCpu
simpleCpuSubdivision.cpp
mainGlut.cpp
${SHADER_FILES}
${INC_FILES}
)
endif()
target_link_libraries(simpleCpu

View File

@ -1,7 +1,8 @@
#import <Cocoa/Cocoa.h>
#import <OpenGL/OpenGL.h>
#import <OpenGL/glu.h>
#import <wchar.h>
#import <iostream>
//
// Hooks back into the example code
//