1
0
mirror of https://github.com/Yours3lf/rpi-vk-driver.git synced 2024-11-29 11:24:14 +01:00
rpi-vk-driver/CMakeLists.txt
2018-08-21 21:03:43 +01:00

28 lines
775 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})
add_subdirectory(brcm)
add_subdirectory(driver)
add_subdirectory(test)