-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
46 lines (33 loc) · 1.3 KB
/
CMakeLists.txt
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
cmake_minimum_required(VERSION 3.23)
project(LearnOpenCV)
set(CMAKE_CXX_STANDARD 14)
find_package(OpenCV REQUIRED QUIET)
include_directories(
include
${OpenCV_INCLUDE_DIRS}
)
link_directories(
include
${OpenCV_LIBRARIES}
)
add_executable(Test src/Test.cpp)
add_executable(VideoCapture
include/header.h
src/VideoCapture.cpp)
target_link_libraries(VideoCapture ${OpenCV_LIBRARIES})
add_executable(ImageResizing src/ImageResizing.cpp)
target_link_libraries(ImageResizing ${OpenCV_LIBRARIES})
add_executable(ImageRotandTrans src/ImageRotandTrans.cpp)
target_link_libraries(ImageRotandTrans ${OpenCV_LIBRARIES})
add_executable(Annotating src/Annotating.cpp)
target_link_libraries(Annotating ${OpenCV_LIBRARIES})
add_executable(ImageFiltering src/ImageFiltering.cpp)
target_link_libraries(ImageFiltering ${OpenCV_LIBRARIES})
add_executable(EdgeDetection src/EdgeDetection.cpp)
target_link_libraries(EdgeDetection ${OpenCV_LIBRARIES})
add_executable(ContourDetection src/ContourDetection.cpp)
target_link_libraries(ContourDetection ${OpenCV_LIBRARIES})
add_executable(BackgroundEstimation src/BackgroundEstimation.cpp)
target_link_libraries(BackgroundEstimation ${OpenCV_LIBRARIES})
add_executable(OpenCVDNN src/OpenCVDNN.cpp)
target_link_libraries(OpenCVDNN ${OpenCV_LIBRARIES})