Skip to content

Instantly share code, notes, and snippets.

@sbleon
Created October 5, 2014 02:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sbleon/ccd52c5b7983a226f2d7 to your computer and use it in GitHub Desktop.
Save sbleon/ccd52c5b7983a226f2d7 to your computer and use it in GitHub Desktop.
Update CMakeLists.txt for picam_gpu
cmake_minimum_required(VERSION 2.8)
project( picam )
SET(COMPILE_DEFINITIONS -Werror)
find_package( OpenCV REQUIRED )
include_directories(/opt/vc/include)
include_directories(/opt/vc/include/interface/vcos)
include_directories(/opt/vc/include/interface/vcos/pthreads)
include_directories(/opt/vc/include/interface/vmcs_host/linux)
include_directories(/opt/vc/include/host_applications/linux/libs/bcm_host/include)
link_directories(/opt/vc/lib)
add_executable(picam picam.cpp camera.cpp cameracontrol.cpp graphics.cpp lodepng.cpp)
target_link_libraries(picam libmmal_core.so libmmal_util.so libmmal_vc_client.so libvcos.so libbcm_host.so GLESv2 EGL ncurses rt ${OpenCV_LIBS})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment