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.
|
|
|
|
|
2017-06-19 16:53:38 +00:00
|
|
|
add_library(sample_utils
|
2017-06-19 17:15:13 +00:00
|
|
|
SampleUtils.cpp
|
|
|
|
SampleUtils.h
|
2017-05-31 00:03:44 +00:00
|
|
|
)
|
2017-06-19 16:53:38 +00:00
|
|
|
target_link_libraries(sample_utils utils nxt_wire)
|
|
|
|
SetCXX14(sample_utils)
|
2017-05-31 00:03:44 +00:00
|
|
|
|
2017-06-16 22:51:14 +00:00
|
|
|
add_executable(CHelloTriangle CHelloTriangle.cpp)
|
2017-06-19 16:53:38 +00:00
|
|
|
target_link_libraries(CHelloTriangle sample_utils)
|
2017-06-16 22:51:14 +00:00
|
|
|
SetCXX14(CHelloTriangle)
|
2017-05-31 00:03:44 +00:00
|
|
|
|
|
|
|
add_executable(CppHelloTriangle HelloTriangle.cpp)
|
2017-06-19 16:53:38 +00:00
|
|
|
target_link_libraries(CppHelloTriangle sample_utils)
|
2017-05-31 00:03:44 +00:00
|
|
|
SetCXX14(CppHelloTriangle)
|
|
|
|
|
|
|
|
add_executable(ComputeBoids ComputeBoids.cpp)
|
2017-06-19 16:53:38 +00:00
|
|
|
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)
|
2017-06-19 16:53:38 +00:00
|
|
|
target_link_libraries(HelloVertices sample_utils)
|
2017-05-31 00:03:44 +00:00
|
|
|
SetCXX14(HelloVertices)
|
|
|
|
|
|
|
|
add_executable(HelloInstancing HelloInstancing.cpp)
|
2017-06-19 16:53:38 +00:00
|
|
|
target_link_libraries(HelloInstancing sample_utils)
|
2017-05-31 00:03:44 +00:00
|
|
|
SetCXX14(HelloInstancing)
|
|
|
|
|
|
|
|
add_executable(HelloIndices HelloIndices.cpp)
|
2017-06-19 16:53:38 +00:00
|
|
|
target_link_libraries(HelloIndices sample_utils)
|
2017-05-31 00:03:44 +00:00
|
|
|
SetCXX14(HelloIndices)
|
|
|
|
|
|
|
|
add_executable(HelloUBO HelloUBO.cpp)
|
2017-06-19 16:53:38 +00:00
|
|
|
target_link_libraries(HelloUBO sample_utils)
|
2017-05-31 00:03:44 +00:00
|
|
|
SetCXX14(HelloUBO)
|
|
|
|
|
|
|
|
add_executable(HelloCompute HelloCompute.cpp)
|
2017-06-19 16:53:38 +00:00
|
|
|
target_link_libraries(HelloCompute sample_utils)
|
2017-05-31 00:03:44 +00:00
|
|
|
SetCXX14(HelloCompute)
|
|
|
|
|
|
|
|
add_executable(RenderToTexture RenderToTexture.cpp)
|
2017-06-19 16:53:38 +00:00
|
|
|
target_link_libraries(RenderToTexture sample_utils)
|
2017-05-31 00:03:44 +00:00
|
|
|
SetCXX14(RenderToTexture)
|
|
|
|
|
|
|
|
add_executable(Animometer Animometer.cpp)
|
2017-06-19 16:53:38 +00:00
|
|
|
target_link_libraries(Animometer sample_utils)
|
2017-05-31 00:03:44 +00:00
|
|
|
SetCXX14(Animometer)
|
|
|
|
|
|
|
|
add_executable(CppHelloDepthStencil HelloDepthStencil.cpp)
|
2017-06-19 16:53:38 +00:00
|
|
|
target_link_libraries(CppHelloDepthStencil sample_utils)
|
2017-05-31 00:03:44 +00:00
|
|
|
SetCXX14(CppHelloDepthStencil)
|
|
|
|
|
|
|
|
add_subdirectory(glTFViewer)
|