aboutsummaryrefslogtreecommitdiff
path: root/ports/urho3d/add_options.patch
blob: 73a88cb4831ee70fb332c5b5fd9e14cce2ad2aa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 866fc22..ee02d2e 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -147,8 +147,12 @@ endif ()
 
 # In order to get clean module segregation, always exclude player/samples from AAR
 if (NOT ANDROID)
+    if (URHO3D_BUILD_TOOLS)
     add_subdirectory (Tools)
+    endif()
+    if (URHO3D_BUILD_SAMPLES)
     add_subdirectory (Samples)
+    endif()
 endif ()
 
 if (URHO3D_EXTRAS)