blob: 896b87ed03dd19e88cac9b4615d9127fc63a33f6 [file] [log] [blame]
Corentin Wallez7fe6efb2020-02-05 17:16:05 +00001# Copyright 2020 The Dawn Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15add_library(dawn_sample_utils STATIC ${DAWN_DUMMY_FILE})
16target_sources(dawn_sample_utils PRIVATE
17 "SampleUtils.cpp"
18 "SampleUtils.h"
19)
20target_link_libraries(dawn_sample_utils PUBLIC
21 dawn_internal_config
22 dawncpp
23 dawn_proc
24 dawn_common
25 dawn_native
26 dawn_wire
27 dawn_utils
28 glfw
29)
30
31add_executable(CppHelloTriangle "CppHelloTriangle.cpp")
32target_link_libraries(CppHelloTriangle dawn_sample_utils)
33
34add_executable(CHelloTriangle "CHelloTriangle.cpp")
35target_link_libraries(CHelloTriangle dawn_sample_utils)
36
37add_executable(ComputeBoids "ComputeBoids.cpp")
38target_link_libraries(ComputeBoids dawn_sample_utils glm)
39
40add_executable(Animometer "Animometer.cpp")
41target_link_libraries(Animometer dawn_sample_utils)
42
43add_executable(CubeReflection "CubeReflection.cpp")
44target_link_libraries(CubeReflection dawn_sample_utils glm)