mirror of
https://github.com/overte-org/overte.git
synced 2025-04-29 21:22:46 +02:00
29 lines
No EOL
760 B
CMake
29 lines
No EOL
760 B
CMake
#
|
|
# AddDependencyExternalProjects.cmake
|
|
# cmake/macros
|
|
#
|
|
# Copyright 2015 High Fidelity, Inc.
|
|
# Created by Stephen Birarda on February 13, 2014
|
|
#
|
|
# Distributed under the Apache License, Version 2.0.
|
|
# See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
#
|
|
|
|
macro(ADD_DEPENDENCY_EXTERNAL_PROJECTS)
|
|
|
|
foreach(_PROJ_NAME ${ARGN})
|
|
|
|
string(TOUPPER ${_PROJ_NAME} _PROJ_NAME_UPPER)
|
|
|
|
if (NOT DEFINED GET_${_PROJ_NAME_UPPER} OR GET_${_PROJ_NAME_UPPER})
|
|
if (NOT TARGET ${_PROJ_NAME})
|
|
add_subdirectory(${EXTERNAL_PROJECT_DIR}/${_PROJ_NAME} ${EXTERNALS_BINARY_DIR}/${_PROJ_NAME})
|
|
endif ()
|
|
|
|
add_dependencies(${TARGET_NAME} ${_PROJ_NAME})
|
|
|
|
endif ()
|
|
|
|
endforeach()
|
|
|
|
endmacro() |