Created
September 14, 2016 17:49
-
-
Save ollewelin/045eed63a934420acff7e1de9dfc31bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#File: CMakeLists.txt | |
#be in /home/pi/negative directory and type: | |
#sudo cmake ./CMakeLists.txt | |
#sudo make | |
#sudo ./test_prog | |
##################################### | |
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) | |
MESSAGE(STATUS "COMPILING OPENCV TESTS") | |
include_directories( "/home/pi/negative") | |
set(SOURCES test_prog.cpp) | |
add_executable (test_prog ${SOURCES}) | |
target_link_libraries (test_prog ${raspicam_CV_LIBS} bcm2835 ${/usr/local/include} rt ${/usr/local/include}) | |
ELSE() | |
MESSAGE(FATAL_ERROR "OPENCV NOT FOUND IN YOUR SYSTEM") | |
ENDIF() | |
##################################### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment