2013-07-16 14:54:36 +02:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
|
|
|
SET(COMPILE_DEFINITIONS -Werror)
|
|
|
|
|
|
|
|
include_directories(/opt/vc/include)
|
2013-07-17 04:13:13 +02:00
|
|
|
include_directories(/opt/vc/include/interface/vcos/pthreads)
|
|
|
|
include_directories(/opt/vc/include/interface/vmcs_host)
|
|
|
|
include_directories(/opt/vc/include/interface/vmcs_host/linux)
|
2013-07-16 14:54:36 +02:00
|
|
|
|
|
|
|
link_directories(/opt/vc/lib)
|
|
|
|
|
|
|
|
add_executable(fbcp main.c)
|
|
|
|
|
|
|
|
target_link_libraries(fbcp bcm_host)
|
2020-12-23 17:30:52 +01:00
|
|
|
|
|
|
|
|
2020-12-23 17:52:22 +01:00
|
|
|
set (CMAKE_C_FLAGS "-std=gnu99 ${CMAKE_C_FLAGS}")
|
|
|
|
|