17 lines
527 B
CMake
17 lines
527 B
CMake
|
cmake_minimum_required(VERSION 3.1)
|
||
|
PROJECT (opencv_fb)
|
||
|
|
||
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake-modules)
|
||
|
|
||
|
find_package(OpenCV HINTS /usr/local/opt/opencv /usr/local/Cellar/opencv REQUIRED)
|
||
|
|
||
|
set( NAME_SRC
|
||
|
opencv_fb.cpp
|
||
|
)
|
||
|
|
||
|
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR}/include )
|
||
|
link_directories( ${CMAKE_BINARY_DIR}/bin)
|
||
|
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
|
||
|
add_executable( opencv_fb ${NAME_SRC} ${NAME_HEADERS} )
|
||
|
|
||
|
target_link_libraries( opencv_fb ${OpenCV_LIBS} )
|