Created
October 24, 2019 20:11
-
-
Save boulabiar/c9e06332838912461c4a95fdd84bede1 to your computer and use it in GitHub Desktop.
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 3.5) | |
set(CMAKE_CXX_STANDARD 11) | |
project(demo LANGUAGES CXX) | |
SET("OpenCV_DIR" "...../opencv4/opencv") | |
find_package( OpenCV REQUIRED ) | |
MESSAGE(STATUS "Include dirs ${OpenCV_INCLUDE_DIRS}") | |
MESSAGE(STATUS "LINK LIBRARIES ${OpenCV_LIBS}") | |
find_package(al-runtime) | |
add_executable(${PROJECT_NAME} "main.cpp" ) | |
target_link_libraries(${PROJECT_NAME} PRIVATE ......... ${OpenCV_LIBS}) | |
target_compile_features(${PROJECT_NAME} PRIVATE "cxx_std_11") | |
target_compile_options(${PROJECT_NAME} PRIVATE "-Wall" "-Wextra") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment