Browse Source

Also exclude the IK sample when the URHO3D_IK option is disabled.

Yao Wei Tjong 姚伟忠 8 years ago
parent
commit
5b1fdb8852
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Source/Samples/45_InverseKinematics/CMakeLists.txt

+ 4 - 0
Source/Samples/45_InverseKinematics/CMakeLists.txt

@@ -20,6 +20,10 @@
 # THE SOFTWARE.
 # THE SOFTWARE.
 #
 #
 
 
+if (NOT URHO3D_IK OR NOT URHO3D_PHYSICS)
+    return ()
+endif ()
+
 # Define target name
 # Define target name
 set (TARGET_NAME 45_InverseKinematics)
 set (TARGET_NAME 45_InverseKinematics)