dawn-cmake/examples/CMakeLists.txt

68 lines
2.1 KiB
CMake
Raw Normal View History

2017-05-31 00:03:44 +00:00
# Copyright 2017 The NXT Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
add_library(sample_utils
SampleUtils.cpp
SampleUtils.h
2017-05-31 00:03:44 +00:00
)
target_link_libraries(sample_utils utils nxt_wire)
SetCXX14(sample_utils)
2017-05-31 00:03:44 +00:00
add_executable(CHelloTriangle CHelloTriangle.cpp)
target_link_libraries(CHelloTriangle sample_utils)
SetCXX14(CHelloTriangle)
2017-05-31 00:03:44 +00:00
add_executable(CppHelloTriangle HelloTriangle.cpp)
target_link_libraries(CppHelloTriangle sample_utils)
2017-05-31 00:03:44 +00:00
SetCXX14(CppHelloTriangle)
add_executable(ComputeBoids ComputeBoids.cpp)
target_link_libraries(ComputeBoids sample_utils)
2017-05-31 00:03:44 +00:00
target_include_directories(ComputeBoids PUBLIC ../ ${GLM_INCLUDE_DIR})
SetCXX14(ComputeBoids)
add_executable(HelloVertices HelloVertices.cpp)
target_link_libraries(HelloVertices sample_utils)
2017-05-31 00:03:44 +00:00
SetCXX14(HelloVertices)
add_executable(HelloInstancing HelloInstancing.cpp)
target_link_libraries(HelloInstancing sample_utils)
2017-05-31 00:03:44 +00:00
SetCXX14(HelloInstancing)
add_executable(HelloIndices HelloIndices.cpp)
target_link_libraries(HelloIndices sample_utils)
2017-05-31 00:03:44 +00:00
SetCXX14(HelloIndices)
add_executable(HelloUBO HelloUBO.cpp)
target_link_libraries(HelloUBO sample_utils)
2017-05-31 00:03:44 +00:00
SetCXX14(HelloUBO)
add_executable(HelloCompute HelloCompute.cpp)
target_link_libraries(HelloCompute sample_utils)
2017-05-31 00:03:44 +00:00
SetCXX14(HelloCompute)
add_executable(RenderToTexture RenderToTexture.cpp)
target_link_libraries(RenderToTexture sample_utils)
2017-05-31 00:03:44 +00:00
SetCXX14(RenderToTexture)
add_executable(Animometer Animometer.cpp)
target_link_libraries(Animometer sample_utils)
2017-05-31 00:03:44 +00:00
SetCXX14(Animometer)
add_executable(CppHelloDepthStencil HelloDepthStencil.cpp)
target_link_libraries(CppHelloDepthStencil sample_utils)
2017-05-31 00:03:44 +00:00
SetCXX14(CppHelloDepthStencil)
add_subdirectory(glTFViewer)