	
	hasCL = findOpenCL_Apple()
	
	if (hasCL) then

		project "OpenGL_rendertest_Apple"

		initOpenCL_Apple()
	
		language "C++"
				
		kind "ConsoleApp"
		targetdir "../../../bin"


		initOpenGL()
		initGlew()

		includedirs {
		"../../primitives",
		"../../../bullet2",
		"../../Gwen"
		}
		
			
		links {"BulletFileLoader","gwen"}
		links { "Cocoa.framework" }
		
		files {
			"../main.cpp",
			"../renderscene.cpp",
			"../renderscene.h",
			"../MacOpenGLWindow.h",
			"../MacOpenGLWindow.mm",
            "../GwenOpenGL3CoreRenderer.h",
			"../GLInstancingRenderer.cpp",
			"../GLInstancingRenderer.h",
			"../GLPrimitiveRenderer.h",
			"../GLPrimitiveRenderer.cpp",
			"../LoadShader.cpp",
			"../LoadShader.h",
			"../gwenWindow.cpp",
			"../gwenWindow.h",
			"../TwFonts.cpp",
			"../TwFonts.h",
 			"../../OpenGLTrueTypeFont/fontstash.cpp",
 			"../../OpenGLTrueTypeFont/fontstash.h",
 			"../../OpenGLTrueTypeFont/opengl_fontstashcallbacks.cpp",
 			"../../OpenGLTrueTypeFont/opengl_fontstashcallbacks.h",
			"../../../bullet2/LinearMath/btConvexHullComputer.cpp",
			"../../../bullet2/LinearMath/btConvexHullComputer.h",
			"../../../bullet2/LinearMath/btSerializer.cpp",
			"../../../bullet2/LinearMath/btSerializer.h",
			"../../../bullet2/LinearMath/btAlignedAllocator.cpp",
			"../../../bullet2/LinearMath/btQuickprof.cpp",
			"../../../bullet2/LinearMath/btQuickprof.h"
		}
		
	end
