mirror of
https://github.com/Yours3lf/rpi-vk-driver.git
synced 2024-12-01 13:24:20 +01:00
36 lines
981 B
CMake
36 lines
981 B
CMake
cmake_minimum_required (VERSION 3.0)
|
|
|
|
project (rpi-vulkan-driver)
|
|
|
|
#SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
#SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
#SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
|
|
|
set(CMAKE_VERBOSE_MAKEFILE ON)
|
|
|
|
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
|
message("Debug build")
|
|
add_definitions(-DDEBUG_BUILD)
|
|
endif()
|
|
|
|
set (EXTERNAL_PATH ${CMAKE_CURRENT_SOURCE_DIR}/external/)
|
|
link_directories(${EXTERNAL_PATH}/lib)
|
|
include_directories(${EXTERNAL_PATH}/include)
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
set(RPI_ARCH
|
|
armv8-a #RPi support: 2B 1.2, 3B, 3B+
|
|
#armv7-a #RPi support: 2B
|
|
#armv8 #RPi support: 3A+
|
|
#armv6z #RPi support: 1A, 1A+, 1B, Zero 1.2, Zero 1.3, Zero W
|
|
)
|
|
|
|
add_subdirectory(brcm)
|
|
add_subdirectory(QPUassembler)
|
|
add_subdirectory(driver)
|
|
add_subdirectory(test)
|