CMakeLists.txt
changeset 1172 55700e64bd8c
parent 1166 ba0794ea4172
child 1187 0687a8d78a54
--- a/CMakeLists.txt	Sun May 29 00:26:44 2016 -0400
+++ b/CMakeLists.txt	Sun May 29 00:31:36 2016 -0400
@@ -8,6 +8,7 @@
 OPTION(PROFILE_GLSL "Build MojoShader with support for the GLSL profile" ON)
 OPTION(PROFILE_ARB1 "Build MojoShader with support for the ARB1 profile" ON)
 OPTION(PROFILE_ARB1_NV "Build MojoShader with support for the ARB1_NV profile" ON)
+OPTION(PROFILE_METAL "Build MojoShader with support for the Metal profile" ON)
 OPTION(EFFECT_SUPPORT "Build MojoShader with support for Effect framework files" ON)
 OPTION(FLIP_VIEWPORT "Build MojoShader with the ability to flip the GL viewport" OFF)
 OPTION(DEPTH_CLIPPING "Build MojoShader with the ability to simulate [0, 1] depth clipping" OFF)
@@ -95,6 +96,9 @@
 IF(NOT PROFILE_ARB1_NV)
     ADD_DEFINITIONS(-DSUPPORT_PROFILE_ARB1_NV=0)
 ENDIF(NOT PROFILE_ARB1_NV)
+IF(NOT PROFILE_METAL)
+    ADD_DEFINITIONS(-DSUPPORT_PROFILE_METAL=0)
+ENDIF(NOT PROFILE_ARB1_NV)
 
 IF(EFFECT_SUPPORT)
     IF(UNIX)