mirror of
https://github.com/overte-org/overte.git
synced 2025-06-15 23:39:17 +02:00
add options with default for get of external projects
This commit is contained in:
parent
bc0bd462cb
commit
dc9c4ea43c
2 changed files with 13 additions and 3 deletions
|
@ -126,8 +126,18 @@ set(EXTERNAL_PROJECT_PREFIX "project")
|
||||||
set_property(DIRECTORY PROPERTY EP_PREFIX ${EXTERNAL_PROJECT_PREFIX})
|
set_property(DIRECTORY PROPERTY EP_PREFIX ${EXTERNAL_PROJECT_PREFIX})
|
||||||
setup_externals_binary_dir()
|
setup_externals_binary_dir()
|
||||||
|
|
||||||
# setup for optional external project dependencies
|
# setup options to grab external project dependencies
|
||||||
option(GET_SDL2 "Download SDL2 as external project" 0)
|
option(GET_BULLET "Get Bullet library automatically as external project" 1)
|
||||||
|
option(GET_GLM "Get GLM library automatically as external project" 1)
|
||||||
|
option(GET_GVERB "Get Gverb library automatically as external project" 1)
|
||||||
|
option(GET_SOXR "Get Soxr library automatically as external project" 1)
|
||||||
|
option(GET_TBB "Get Threading Building Blocks library automatically as external project" 1)
|
||||||
|
|
||||||
|
if (WIN32)
|
||||||
|
option(GET_GLEW "Get GLEW library automatically as external project" 1)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
option(GET_SDL2 "Get SDL2 library automatically as external project" 0)
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
add_paths_to_lib_paths("${QT_DIR}/bin")
|
add_paths_to_lib_paths("${QT_DIR}/bin")
|
||||||
|
|
|
@ -16,7 +16,7 @@ macro(ADD_DEPENDENCY_EXTERNAL_PROJECTS)
|
||||||
string(TOUPPER ${_PROJ_NAME} _PROJ_NAME_UPPER)
|
string(TOUPPER ${_PROJ_NAME} _PROJ_NAME_UPPER)
|
||||||
|
|
||||||
# has the user told us they specific don't want this as an external project?
|
# has the user told us they specific don't want this as an external project?
|
||||||
if (NOT DEFINED GET_${_PROJ_NAME_UPPER} OR GET_${_PROJ_NAME_UPPER})
|
if (GET_${_PROJ_NAME_UPPER})
|
||||||
# have we already detected we can't have this as external project on this OS?
|
# have we already detected we can't have this as external project on this OS?
|
||||||
if (NOT DEFINED ${_PROJ_NAME_UPPER}_EXTERNAL_PROJECT OR ${_PROJ_NAME_UPPER}_EXTERNAL_PROJECT)
|
if (NOT DEFINED ${_PROJ_NAME_UPPER}_EXTERNAL_PROJECT OR ${_PROJ_NAME_UPPER}_EXTERNAL_PROJECT)
|
||||||
# have we already setup the target?
|
# have we already setup the target?
|
||||||
|
|
Loading…
Reference in a new issue