forked from VIAME/VIAME
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
92 lines (79 loc) · 2.27 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
###
# Application level pipelines
##
set( EXAMPLE_INSTALL_FILES
input_list.txt
habcam_list.txt )
if( VIAME_ENABLE_YOLO )
set( EXAMPLE_INSTALL_FILES
${EXAMPLE_INSTALL_FILES}
yolo_v2_detector.pipe
habcam_detector.pipe )
if( VIAME_DOWNLOAD_MODELS )
DownloadAndExtract(
https://data.kitware.com/api/v1/item/5a5e357d8d777f5e872f85c5/download
8c4f120fb42b0ee579c770eec08304ea
${VIAME_DOWNLOAD_DIR}/yolo_models_v0.1.1.tar.gz
${CMAKE_CURRENT_SOURCE_DIR} )
DownloadAndExtract(
https://data.kitware.com/api/v1/item/5a5e39ad8d777f5e872f85c8/download
41ef007ac005c1f202384b4478531238
${VIAME_DOWNLOAD_DIR}/habcam_models_v0.2.0.tar.gz
${CMAKE_CURRENT_SOURCE_DIR} )
endif()
if( WIN32 )
set( EXAMPLE_INSTALL_FILES
${EXAMPLE_INSTALL_FILES}
run_yolo.bat )
else()
set( EXAMPLE_INSTALL_FILES
${EXAMPLE_INSTALL_FILES}
run_yolo.sh )
endif()
if( NOT WIN32 )
set( EXAMPLE_INSTALL_FILES
${EXAMPLE_INSTALL_FILES}
run_habcam.sh )
endif()
endif()
if( VIAME_ENABLE_SCALLOP_TK )
set( EXAMPLE_INSTALL_FILES
${EXAMPLE_INSTALL_FILES}
scallop_tk_detector.pipe )
endif()
if( VIAME_ENABLE_OPENCV )
set( EXAMPLE_INSTALL_FILES
${EXAMPLE_INSTALL_FILES}
hough_detector.pipe )
endif()
if( VIAME_ENABLE_SCALLOP_TK AND VIAME_ENABLE_YOLO )
set( EXAMPLE_INSTALL_FILES
${EXAMPLE_INSTALL_FILES}
multi_cnn_detector.pipe )
endif()
if( VIAME_ENABLE_MATLAB )
set( EXAMPLE_INSTALL_FILES
${EXAMPLE_INSTALL_FILES}
lanl_detector.pipe )
if( VIAME_ENABLE_UW_PREDICTOR )
set( EXAMPLE_INSTALL_FILES
${EXAMPLE_INSTALL_FILES}
camtrawl_pipeline.pipe )
endif()
if( NOT WIN32 )
set( EXAMPLE_INSTALL_FILES
${EXAMPLE_INSTALL_FILES}
run_lanl.sh )
endif()
endif()
###
# Install pipelines to example directory
##
install( FILES ${EXAMPLE_INSTALL_FILES}
DESTINATION examples/detector_pipelines )
install( DIRECTORY models
DESTINATION examples/detector_pipelines )
install( FILES output/example_detections.kw18
output/example_tot_scores.txt
output/yolo_v2_detections.prj
DESTINATION examples/detector_pipelines/output )