代码拉取完成,页面将自动刷新
# CMakeList.txt : CMake project for ivutil, include source and define
# project specific logic here.
#
cmake_minimum_required (VERSION 3.8)
# https://stackoverflow.com/a/50360945/8242705
# https://code.visualstudio.com/docs/cpp/faq-cpp#_how-do-i-get-intellisense-to-work-correctly
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set (CMAKE_CXX_STANDARD 17)
# 设置VCPKG_ROOT所在的位置
set(VCPKG_ROOT "C:/env/vcpkg/scripts/buildsystems/vcpkg.cmake")
set(CMAKE_TOOLCHAIN_FILE ${VCPKG_ROOT})
project ("ivutil")
set(SRC demo/demo3_5.cpp)
set(SRC_SRC ivutil.h ivutil.cpp)
set(head_files ivutil.h)
find_package(OpenCV CONFIG REQUIRED)
# Add source to this project's executable.
add_executable (ivutil ${SRC} )
#set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS YES CACHE BOOL "Export all symbols")
#add_library(ivutil SHARED ${SRC_SRC})
install(TARGETS ivutil
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
)
install (FILES ivutil.h DESTINATION include)
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})
# TODO: Add tests and install targets if needed.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。