Created
March 3, 2017 19:24
-
-
Save ollewelin/3b7e0addaf298fa7015d4bd8f58561f9 to your computer and use it in GitHub Desktop.
CMakeFiles.txt for NN18.cpp program
This file contains hidden or 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
##################################### | |
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") | |
#SET_SOURCE_FILES_PROPERTIES( gpio_test.c PROPERTIES LANGUAGE CXX ) | |
include_directories( "/home/pi/NN18") | |
set(SOURCES NN18.cpp) | |
add_executable (NN18 ${SOURCES}) | |
target_link_libraries (NN18 ${raspicam_CV_LIBS} 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