	
	hasCL = findOpenCL_Apple()
	
	if (hasCL) then

		project "OpenCL_gpu_rigidbody_pipeline2_Apple"

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


		initOpenGL()
		initGlew()

		includedirs {
		"../../../rendering/rendertest",
		"../../primitives",
		"../../../bullet2",
		"../../../dynamics/basic_demo"
		}
		
		
		links {"BulletFileLoader"}
		
		links { "Cocoa.framework" }
		
		files {
			"../main.cpp",
			"../satClipHullContacts.cpp",
			"../BulletDataExtractor.cpp",
			"../BulletDataExtractor.h",
			"../btGpuSapBroadphase.cpp",
			"../btGpuSapBroadphase.h",
			"../CLPhysicsDemo.cpp",
			"../CLPhysicsDemo.h",
			"../ConvexHullContact.cpp",
			"../ConvexHullContact.h",
		--	"../btPgsJacobiSolver.cpp",
		--	"../btPgsJacobiSolver.h",
			"../../broadphase_benchmark/btPrefixScanCL.cpp",
			"../../broadphase_benchmark/btPrefixScanCL.h",
			"../../broadphase_benchmark/btRadixSort32CL.cpp",
			"../../broadphase_benchmark/btRadixSort32CL.h",
			"../../broadphase_benchmark/btFillCL.cpp",
			"../../broadphase_benchmark/btFillCL.h",
			"../../broadphase_benchmark/btBoundSearchCL.cpp",
			"../../broadphase_benchmark/btBoundSearchCL.h",
			"../../gpu_rigidbody_pipeline/btConvexUtility.cpp",
			"../../gpu_rigidbody_pipeline/btConvexUtility.h",
			"../../gpu_rigidbody_pipeline/btGpuNarrowPhaseAndSolver.cpp",
			"../../gpu_rigidbody_pipeline/btGpuNarrowPhaseAndSolver.h",
			"../../../dynamics/basic_demo/ConvexHeightFieldShape.cpp",
			"../../../dynamics/basic_demo/ConvexHeightFieldShape.h",
			"../../../dynamics/basic_demo/Stubs/ChNarrowphase.cpp",
			"../../../dynamics/basic_demo/Stubs/Solver.cpp",
			"../../../bullet2/LinearMath/btConvexHullComputer.cpp",
			"../../../bullet2/LinearMath/btConvexHullComputer.h",
			"../../broadphase_benchmark/findPairsOpenCL.cpp",
			"../../broadphase_benchmark/findPairsOpenCL.h",
			"../../broadphase_benchmark/btGridBroadphaseCL.cpp",
			"../../broadphase_benchmark/btGridBroadphaseCL.h",
			"../../3dGridBroadphase/Shared/bt3dGridBroadphaseOCL.cpp",
			"../../3dGridBroadphase/Shared/bt3dGridBroadphaseOCL.h",
			"../../3dGridBroadphase/Shared/btGpu3DGridBroadphase.cpp",
			"../../3dGridBroadphase/Shared/btGpu3DGridBroadphase.h",
			"../../../bullet2/LinearMath/btSerializer.cpp",
			"../../../bullet2/LinearMath/btSerializer.h",
			"../../../bullet2/LinearMath/btAlignedAllocator.cpp",
			"../../../bullet2/LinearMath/btQuickprof.cpp",
			"../../../bullet2/LinearMath/btQuickprof.h",
			"../../../bullet2/BulletCollision/BroadphaseCollision/btBroadphaseProxy.cpp",
			"../../../bullet2/BulletCollision/BroadphaseCollision/btOverlappingPairCache.cpp",
			"../../../bullet2/BulletCollision/BroadphaseCollision/btSimpleBroadphase.cpp",
			"../../basic_initialize/btOpenCLUtils.cpp",
			"../../basic_initialize/btOpenCLUtils.h",
			--"../../opengl_interop/btOpenCLGLInteropBuffer.cpp",
			--"../../opengl_interop/btOpenCLGLInteropBuffer.h",
			"../../opengl_interop/btStopwatch.cpp",
			"../../opengl_interop/btStopwatch.h",
			"../../../rendering/WavefrontObjLoader/string_extra.cpp",
			"../../../rendering/WavefrontObjLoader/string_extra.h",
			"../../../rendering/WavefrontObjLoader/objLoader.cpp",
			"../../../rendering/WavefrontObjLoader/objLoader.h",
			"../../../rendering/WavefrontObjLoader/obj_parser.cpp",
			"../../../rendering/WavefrontObjLoader/obj_parser.h",
			"../../../rendering/WavefrontObjLoader/list.cpp",
			"../../../rendering/WavefrontObjLoader/list.h",
			"../../../rendering/rendertest/MacOpenGLWindow.mm",
			"../../../rendering/rendertest/MacOpenGLWindow.h",
			"../../../rendering/rendertest/GLInstancingRenderer.cpp",
			"../../../rendering/rendertest/GLInstancingRenderer.h",
			"../../../rendering/rendertest/LoadShader.cpp",
			"../../../rendering/rendertest/LoadShader.h"
		}
		
	end
