-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
52 lines (46 loc) · 1.14 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
cmake_minimum_required(VERSION 3.16)
project(dawn VERSION 6536 LANGUAGES CXX)
set(BUILD_SHARED_LIBS OFF)
SET(DAWN_FETCH_DEPENDENCIES ON)
SET(DAWN_ENABLE_DESKTOP_GL OFF)
SET(DAWN_ENABLE_OPENGLES OFF)
SET(DAWN_ENABLE_NULL OFF)
SET(DAWN_BUILD_SAMPLES OFF)
SET(DAWN_USE_GLFW OFF)
SET(TINT_BUILD_DOCS OFF)
SET(TINT_BUILD_TESTS OFF)
SET(TINT_BUILD_CMD_TOOLS OFF)
SET(TINT_BUILD_DOCS OFF)
SET(TINT_BUILD_TESTS OFF)
add_subdirectory(dawn)
install(
TARGETS
webgpu_dawn
EXPORT
dawn
RUNTIME DESTINATION
${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION
${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION
${CMAKE_INSTALL_LIBDIR}
INCLUDES DESTINATION
${CMAKE_INSTALL_INCLUDEDIR}
)
install(
DIRECTORY
build/dawn/gen/include/dawn
dawn/include/webgpu
DESTINATION
${CMAKE_INSTALL_INCLUDEDIR}
)
install(
FILES
dawnConfig.cmake
DESTINATION
share/dawn/cmake
)
SET(CPACK_GENERATOR "DEB")
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "[email protected]")
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libx11-xcb-dev")
INCLUDE(CPack)