mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-07 06:44:18 +00:00
26 lines
746 B
CMake
26 lines
746 B
CMake
# =============================================================================
|
|
# Copyright (c) 2016 Raspberry Pi (Trading) Ltd.
|
|
# All rights reserved.
|
|
#
|
|
# FILE DESCRIPTION
|
|
# CMake build file for dtoverlay library.
|
|
# =============================================================================
|
|
|
|
cmake_minimum_required (VERSION 2.8)
|
|
|
|
include_directories (${VIDEOCORE_ROOT}
|
|
${VIDEOCORE_ROOT}/helpers
|
|
${VIDEOCORE_ROOT}/opensrc/helpers/libfdt
|
|
${VIDEOCORE_HEADERS_BUILD_DIR})
|
|
|
|
if (CMAKE_COMPILER_IS_GNUCC)
|
|
add_definitions (-ffunction-sections)
|
|
endif ()
|
|
|
|
add_library (dtovl ${SHARED}
|
|
dtoverlay.c)
|
|
|
|
target_link_libraries(dtovl fdt)
|
|
|
|
install (TARGETS dtovl DESTINATION lib)
|