Corentin Wallez | 7fe6efb | 2020-02-05 17:16:05 +0000 | [diff] [blame] | 1 | # 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 | |
| 15 | add_library(dawn_sample_utils STATIC ${DAWN_DUMMY_FILE}) |
| 16 | target_sources(dawn_sample_utils PRIVATE |
| 17 | "SampleUtils.cpp" |
| 18 | "SampleUtils.h" |
| 19 | ) |
| 20 | target_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 | |
| 31 | add_executable(CppHelloTriangle "CppHelloTriangle.cpp") |
| 32 | target_link_libraries(CppHelloTriangle dawn_sample_utils) |
| 33 | |
| 34 | add_executable(CHelloTriangle "CHelloTriangle.cpp") |
| 35 | target_link_libraries(CHelloTriangle dawn_sample_utils) |
| 36 | |
| 37 | add_executable(ComputeBoids "ComputeBoids.cpp") |
| 38 | target_link_libraries(ComputeBoids dawn_sample_utils glm) |
| 39 | |
| 40 | add_executable(Animometer "Animometer.cpp") |
| 41 | target_link_libraries(Animometer dawn_sample_utils) |
| 42 | |
| 43 | add_executable(CubeReflection "CubeReflection.cpp") |
| 44 | target_link_libraries(CubeReflection dawn_sample_utils glm) |