代码拉取完成,页面将自动刷新
cmake_minimum_required( VERSION 2.8 )
project ( HandPoseDetect )
set( CMAKE_BUILD_TYPE "Release" )
#set( CMAKE_BUILD_TYPE "Debug" )
set( CMAKE_CXX_FLAGS "-std=c++11" )
set( EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin )
set( LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib )
############### dependencies ######################
#Boost
set(BOOST_LIBRARYDIR /usr/lib/x86_64-linux-gnu/)
find_package(Boost REQUIRED COMPONENTS system thread)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
MESSAGE( STATUS "Boost_INCLUDE_DIRS = ${Boost_INCLUDE_DIRS}.")
MESSAGE( STATUS "Boost_LIBRARIES = ${Boost_LIBRARIES}.")
MESSAGE( STATUS "Boost_LIB_VERSION = ${Boost_LIB_VERSION}.")
endif()
# OpenCV
find_package( OpenCV REQUIRED )
message(STATUS "OpenCV library status:")
message(STATUS " version: ${OpenCV_VERSION}")
message(STATUS " libraries: ${OpenCV_LIBS}")
message(STATUS " include path: ${OpenCV_INCLUDE_DIRS}")
include_directories( ${OpenCV_INCLUDE_DIRS} )
#Threads
#find_package(Threads)
#python2.7
set(Python2_Version 2.7)
set(Python2_INCLUDE_DIRS "/usr/include/python2.7/")
#set(Python2_LIBS "/usr/lib/python2.7/config-arm-linux-gnueabihf/libpython2.7.so") #for ARM
set(Python2_LIBS /usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.so) #for X86_64
message(STATUS "Python2 library status:")
message(STATUS " version: ${Python2_Version}")
message(STATUS " libraries: ${Python2_LIBS}")
message(STATUS " include path: ${Python2_INCLUDE_DIRS}")
include_directories(${Python2_INCLUDE_DIRS})
#MindVersion SDK support
set(MindVersionSDK_Version 2.1.0.6)
set(MindVersionSDK_INCLUDE_DIRS "/usr/include")
set(MindVersionSDK_LIB "/usr/lib/libMVSDK.so")
message(STATUS "MindVersionSDK library status:")
message(STATUS " version: ${MindVersionSDK_Version}")
message(STATUS " libraries: ${MindVersionSDK_LIB}")
message(STATUS " include path: ${MindVersionSDK_INCLUDE_DIRS}")
include_directories(${MindVersionSDK_INCLUDE_DIRS})
set( THIRD_PARTY_LIBS
${OpenCV_LIBS}
# ${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}
${Python2_LIBS}
${MindVersionSDK_LIB}
)
############### source and test ######################
include_directories(${PROJECT_SOURCE_DIR}/include )
#添加含有CMakeLists文件的子文件夹
add_subdirectory( src )
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。