CMakeLists.txt 610 字节
Newer Older
Z
zhiboniu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
cmake_minimum_required(VERSION 3.9)

project(tinypose-mnn)

set(CMAKE_CXX_STANDARD 17)
set(MNN_DIR {YOUR_MNN_DIR})

find_package(OpenCV REQUIRED)

include_directories(
        ${MNN_DIR}/include
        ${MNN_DIR}/include/MNN
        ${CMAKE_SOURCE_DIR}
)
link_directories(mnn/lib)

add_library(libMNN SHARED IMPORTED)
set_target_properties(
        libMNN
        PROPERTIES IMPORTED_LOCATION
        ${CMAKE_SOURCE_DIR}/mnn/lib/libMNN.so
)
add_executable(tinypose-mnn main.cpp picodet_mnn.cpp keypoint_detector.cpp keypoint_postprocess.cpp)

target_link_libraries(tinypose-mnn MNN ${OpenCV_LIBS} libMNN.so)