-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
49 lines (43 loc) · 1.12 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
47
48
49
cmake_minimum_required(VERSION 3.0)
project(upsdetector)
### CONFIGURATION ############################################################
find_package(OpenCV REQUIRED
COMPONENTS
opencv_core
opencv_imgproc
opencv_videoio
opencv_highgui
opencv_imgcodecs
)
###\CONFIGURATION ############################################################
### PROJECT LIBRARY ##########################################################
add_library(upsdetectorlib OBJECT
maskoperators.cpp
point.cpp
segment.cpp
segmentfiller.cpp
preprocessing.cpp
)
# target_include_directories(upsdetectorlib
# PUBLIC
# .
# )
target_link_libraries(upsdetectorlib
PUBLIC
${OpenCV_LIBRARIES}
)
###\PROJECT LIBRARY ##########################################################
add_executable(demo demo.cpp)
target_link_libraries(demo
PUBLIC
upsdetectorlib
${OpenCV_LIBRARIES}
)
install(TARGETS demo RUNTIME DESTINATION bin)
add_executable(showsegments showsegments.cpp)
target_link_libraries(showsegments
PUBLIC
upsdetectorlib
${OpenCV_LIBRARIES}
)
install(TARGETS showsegments RUNTIME DESTINATION bin)