mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-13 08:09:39 +00:00
cmake option to dont build all bundled external libraries
This commit is contained in:
parent
6e070274a7
commit
36888fd009
@ -9,6 +9,7 @@ set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
### Build options
|
||||
option(ALLOW_BUNDLED_EXTERNAL_MESHLAB_LIBRARIES "Allow to build bundled external libraries sources" ON)
|
||||
option(BUILD_MINI "Build only a minimal set of plugins" OFF)
|
||||
option(BUILD_SERVER "Build a command-line server application" OFF)
|
||||
option(BUILD_STRICT "Strictly enforce resolution of all symbols" ON)
|
||||
@ -112,7 +113,7 @@ endif()
|
||||
# External
|
||||
set(EXTERNAL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external)
|
||||
include(${EXTERNAL_DIR}/external_common.cmake)
|
||||
if(NOT BUILD_MINI)
|
||||
if((NOT BUILD_MINI) AND (ALLOW_BUNDLED_EXTERNAL_MESHLAB_LIBRARIES))
|
||||
add_subdirectory(${EXTERNAL_DIR})
|
||||
endif()
|
||||
|
||||
|
||||
6
src/external/CMakeLists.txt
vendored
6
src/external/CMakeLists.txt
vendored
@ -2,7 +2,5 @@
|
||||
# Copyright 2019, 2020, Visual Computing Lab, ISTI - Italian National Research Council
|
||||
# SPDX-License-Identifier: BSL-1.0
|
||||
|
||||
if(NOT BUILD_MINI)
|
||||
message(STATUS "Searching for optional components")
|
||||
include(${EXTERNAL_DIR}/external.cmake)
|
||||
endif()
|
||||
message(STATUS "Searching for optional components")
|
||||
include(${EXTERNAL_DIR}/external.cmake)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user