# 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 ) target_link_libraries(sample_utils utils nxt_wire) SetCXX14(sample_utils) add_executable(CHelloTriangle CHelloTriangle.cpp) target_link_libraries(CHelloTriangle sample_utils) SetCXX14(CHelloTriangle) add_executable(CppHelloTriangle HelloTriangle.cpp) target_link_libraries(CppHelloTriangle sample_utils) SetCXX14(CppHelloTriangle) add_executable(ComputeBoids ComputeBoids.cpp) target_link_libraries(ComputeBoids sample_utils) target_include_directories(ComputeBoids PUBLIC ../ ${GLM_INCLUDE_DIR}) SetCXX14(ComputeBoids) add_executable(HelloVertices HelloVertices.cpp) target_link_libraries(HelloVertices sample_utils) SetCXX14(HelloVertices) add_executable(HelloInstancing HelloInstancing.cpp) target_link_libraries(HelloInstancing sample_utils) SetCXX14(HelloInstancing) add_executable(HelloIndices HelloIndices.cpp) target_link_libraries(HelloIndices sample_utils) SetCXX14(HelloIndices) add_executable(HelloUBO HelloUBO.cpp) target_link_libraries(HelloUBO sample_utils) SetCXX14(HelloUBO) add_executable(HelloCompute HelloCompute.cpp) target_link_libraries(HelloCompute sample_utils) SetCXX14(HelloCompute) add_executable(RenderToTexture RenderToTexture.cpp) target_link_libraries(RenderToTexture sample_utils) SetCXX14(RenderToTexture) add_executable(Animometer Animometer.cpp) target_link_libraries(Animometer sample_utils) SetCXX14(Animometer) add_executable(CppHelloDepthStencil HelloDepthStencil.cpp) target_link_libraries(CppHelloDepthStencil sample_utils) SetCXX14(CppHelloDepthStencil) add_subdirectory(glTFViewer)