2018-05-06 19:35:47 +02:00
|
|
|
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)
|
|
|
|
|
2018-05-10 23:10:35 +02:00
|
|
|
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
|
|
|
message("Debug build")
|
|
|
|
add_definitions(-DDEBUG_BUILD)
|
|
|
|
endif()
|
|
|
|
|
2018-05-06 19:35:47 +02:00
|
|
|
set (EXTERNAL_PATH ${CMAKE_CURRENT_SOURCE_DIR}/external/)
|
|
|
|
link_directories(${EXTERNAL_PATH}/lib)
|
|
|
|
include_directories(${EXTERNAL_PATH}/include)
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
2018-08-21 22:03:43 +02:00
|
|
|
add_subdirectory(brcm)
|
2019-05-06 17:58:34 +02:00
|
|
|
add_subdirectory(QPUassembler)
|
2018-05-06 19:35:47 +02:00
|
|
|
add_subdirectory(driver)
|
|
|
|
add_subdirectory(test)
|