feat: init OpenCV C++ training course with 8 experiments and detailed tutorial
This commit is contained in:
9
exp6_morphology/CMakeLists.txt
Normal file
9
exp6_morphology/CMakeLists.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
# 实验 6:形态学操作:腐蚀与膨胀 - CMake 构建配置
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(exp6_morphology)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
find_package(OpenCV REQUIRED)
|
||||
add_executable(exp6 main.cpp)
|
||||
target_link_libraries(exp6 ${OpenCV_LIBS})
|
||||
include_directories(${OpenCV_INCLUDE_DIRS})
|
||||
Reference in New Issue
Block a user