1 | initial version |
did you try to generate your project / makefile using cmake ?
edit / save the txt below to CMakeLists.txt in your code folder and run cmake there in the same way you did for building opencv.
cmake_minimum_required (VERSION 2.8)
FIND_PACKAGE( OpenCV REQUIRED )
PROJECT(MyProject) # change this! (project_name)
SET(SRC
main.cpp # change this! (src files)
another.cpp
)
ADD_EXECUTABLE( ${PROJECT_NAME} ${SRC} )
TARGET_LINK_LIBRARIES( ${PROJECT_NAME} ${OpenCV_LIBS} )