Last active
September 12, 2019 22:54
-
-
Save cyrusbehr/8c932e58ae25a9a88233926b4944a184 to your computer and use it in GitHub Desktop.
Performing inference with NCNN
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
cmake_minimum_required(VERSION 3.14) | |
project(ncnn-inference) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -fPIC -ffast-math -Ofast -fopenmp") | |
add_executable(ncnn_test main.cpp) | |
find_package( OpenCV REQUIRED ) | |
target_include_directories( | |
ncnn_test | |
PRIVATE | |
${PROJECT_SOURCE_DIR}/include | |
${OpenCV_INCLUDE_DIRS} | |
) | |
target_link_directories( | |
ncnn_test | |
PRIVATE | |
${PROJECT_SOURCE_DIR}/lib | |
) | |
target_link_libraries( | |
ncnn_test | |
PUBLIC | |
${OpenCV_LIBS} | |
ncnn | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment