1 Star 0 Fork 0

cobrass/ivutil

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
cobrass 提交于 2021-07-20 05:12 . t
# 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.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/cobrass/ivutil.git
git@gitee.com:cobrass/ivutil.git
cobrass
ivutil
ivutil
master

搜索帮助