mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 11:07:10 +02:00
16 lines
No EOL
563 B
CMake
16 lines
No EOL
563 B
CMake
#
|
|
# Copyright 2015 High Fidelity, Inc.
|
|
# Created by Bradley Austin Davis on 2015/10/10
|
|
#
|
|
# 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_GLEW)
|
|
if (NOT ANDROID)
|
|
add_definitions(-DGLEW_STATIC)
|
|
add_dependency_external_projects(glew)
|
|
find_package(GLEW REQUIRED)
|
|
target_include_directories(${TARGET_NAME} PUBLIC ${GLEW_INCLUDE_DIRS})
|
|
target_link_libraries(${TARGET_NAME} ${GLEW_LIBRARY})
|
|
endif()
|
|
endmacro() |