Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/io/CMakeLists.txt')
-rw-r--r--source/blender/io/CMakeLists.txt19
1 files changed, 15 insertions, 4 deletions
diff --git a/source/blender/io/CMakeLists.txt b/source/blender/io/CMakeLists.txt
index b5f2694c2da..8b20b50a181 100644
--- a/source/blender/io/CMakeLists.txt
+++ b/source/blender/io/CMakeLists.txt
@@ -1,8 +1,21 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright 2020 Blender Foundation. All rights reserved.
-add_subdirectory(common)
-add_subdirectory(wavefront_obj)
+if(WITH_IO_WAVEFRONT_OBJ OR WITH_IO_STL OR WITH_IO_GPENCIL OR WITH_ALEMBIC OR WITH_USD)
+ add_subdirectory(common)
+endif()
+
+if(WITH_IO_WAVEFRONT_OBJ)
+ add_subdirectory(wavefront_obj)
+endif()
+
+if(WITH_IO_STL)
+ add_subdirectory(stl)
+endif()
+
+if(WITH_IO_GPENCIL)
+ add_subdirectory(gpencil)
+endif()
if(WITH_ALEMBIC)
add_subdirectory(alembic)
@@ -19,5 +32,3 @@ endif()
if(WITH_USD)
add_subdirectory(usd)
endif()
-
-add_subdirectory(gpencil)