mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 19:10:38 +02:00
21 lines
763 B
CMake
21 lines
763 B
CMake
#
|
|
# Copyright 2015 High Fidelity, Inc.
|
|
# Created by Leonardo Murillo on 2015/11/20
|
|
#
|
|
# Distributed under the Apache License, Version 2.0.
|
|
# See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
#
|
|
macro(TARGET_QUAZIP)
|
|
find_library(QUAZIP_LIBRARY_RELEASE quazip5 PATHS ${VCPKG_INSTALL_ROOT}/lib NO_DEFAULT_PATH)
|
|
find_library(QUAZIP_LIBRARY_DEBUG quazip5 PATHS ${VCPKG_INSTALL_ROOT}/debug/lib NO_DEFAULT_PATH)
|
|
select_library_configurations(QUAZIP)
|
|
target_link_libraries(${TARGET_NAME} ${QUAZIP_LIBRARIES})
|
|
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
|
add_custom_command(
|
|
TARGET ${TARGET_NAME}
|
|
POST_BUILD
|
|
COMMAND cp
|
|
ARGS -d ${QUAZIP_LIBRARIES}* ${CMAKE_BINARY_DIR}
|
|
)
|
|
endif()
|
|
endmacro()
|