forked from Yours3lf/rpi-vk-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
50 lines (37 loc) · 1.24 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
cmake_minimum_required (VERSION 3.10.2)
cmake_policy(SET CMP0048 NEW)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug, Release, or MinSizeRel." FORCE)
message(STATUS "CMAKE_BUILD_TYPE not set, defaulting to Release.")
endif()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
if(NOT BUILD_NUMBER)
set(BUILD_NUMBER 1.0.0)
endif()
project (rpi-vulkan-driver
VERSION ${BUILD_NUMBER}
DESCRIPTION "Driver for Broadcom Videocore IV GPU"
LANGUAGES C CXX
)
include(options)
include(sysroot)
include(global)
include(vulkan)
add_subdirectory(brcm)
add_subdirectory(QPUassembler)
add_subdirectory(driver)
include(packaging)
include(CTest)
if(BUILD_TESTING)
add_subdirectory(test)
endif()
add_custom_target(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_SOURCE_DIR}/cmake/uninstall.cmake"
)
add_custom_target(uninstall-vulkan
"${CMAKE_COMMAND}" -P "${CMAKE_BINARY_DIR}/vulkan-headers-prefix/src/vulkan-headers-build/cmake_uninstall.cmake"
)
add_custom_target(clean-vulkan
"${CMAKE_COMMAND}" -E remove_directory "${CMAKE_BINARY_DIR}/vulkan-headers-prefix"
"${CMAKE_COMMAND}" -E remove_directory "${CMAKE_BINARY_DIR}/vulkan-loader-prefix"
)