mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
18 lines
No EOL
548 B
CMake
18 lines
No EOL
548 B
CMake
#
|
|
# SetupExternalProject.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_PROJECT _PROJ_NAME)
|
|
if (NOT TARGET ${_PROJ_NAME})
|
|
add_subdirectory(${EXTERNAL_PROJECT_DIR}/${_PROJ_NAME} ${CMAKE_BINARY_DIR}/externals/${_PROJ_NAME})
|
|
endif ()
|
|
|
|
add_dependencies(${TARGET_NAME} ${_PROJ_NAME})
|
|
endmacro() |