mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
21 lines
No EOL
639 B
CMake
21 lines
No EOL
639 B
CMake
#
|
|
# LinkHifiLibrary.cmake
|
|
#
|
|
# Copyright 2013 High Fidelity, Inc.
|
|
#
|
|
# Distributed under the Apache License, Version 2.0.
|
|
# See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
#
|
|
|
|
macro(LINK_HIFI_LIBRARY LIBRARY TARGET ROOT_DIR)
|
|
|
|
if (NOT TARGET ${LIBRARY})
|
|
add_subdirectory("${ROOT_DIR}/libraries/${LIBRARY}" "${ROOT_DIR}/libraries/${LIBRARY}")
|
|
endif ()
|
|
|
|
include_directories("${ROOT_DIR}/libraries/${LIBRARY}/src")
|
|
|
|
add_dependencies(${TARGET} ${LIBRARY})
|
|
|
|
target_link_libraries(${TARGET} ${LIBRARY} ${SUB_DEPENDENCY_LIBRARIES})
|
|
endmacro(LINK_HIFI_LIBRARY _library _target _root_dir) |