Skip to content

Commit

Permalink
README example project (#32)
Browse files Browse the repository at this point in the history
* Fixed two errors in README example; find raspicam after installing, and include for sleep()

* Fixed second example in README
  • Loading branch information
TamaMcGlinn authored and Cédric Verstraeten committed Jan 27, 2018
1 parent 220bf3b commit 59d92e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ First create a file with the name simpletest_raspicam.cpp and add the following
/**
*/
#include <ctime>
#include <unistd.h>
#include <fstream>
#include <iostream>
#include <raspicam/raspicam.h>
Expand Down Expand Up @@ -124,6 +125,7 @@ Now, create a file named CMakeLists.txt and add:
#####################################
cmake_minimum_required (VERSION 2.8)
project (raspicam_test)
set (CMAKE_MODULE_PATH "/usr/local/lib/cmake/${CMAKE_MODULE_PATH}")
find_package(raspicam REQUIRED)
add_executable (simpletest_raspicam simpletest_raspicam.cpp)
target_link_libraries (simpletest_raspicam ${raspicam_LIBS})
Expand Down Expand Up @@ -187,6 +189,7 @@ Now, create a file named CMakeLists.txt and add:
#####################################
cmake_minimum_required (VERSION 2.8)
project (raspicam_test)
set (CMAKE_MODULE_PATH "/usr/local/lib/cmake/${CMAKE_MODULE_PATH}")
find_package(raspicam REQUIRED)
find_package(OpenCV)
IF ( OpenCV_FOUND AND raspicam_CV_FOUND)
Expand Down

0 comments on commit 59d92e6

Please sign in to comment.