forked from VIAME/VIAME
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
66 lines (57 loc) · 1.69 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
###
# Application level pipelines
##
set( EXAMPLE_INSTALL_FILES
input_list.txt )
if( VIAME_ENABLE_YOLO )
set( EXAMPLE_INSTALL_FILES
${EXAMPLE_INSTALL_FILES}
yolo_v2_detector.pipe )
if( VIAME_DOWNLOAD_MODELS )
DownloadAndExtract(
https://data.kitware.com/api/v1/file/58c4b8848d777f0aef5d796b/download
c10bf3f5be72d3d22a417f5f475604ad
${VIAME_DOWNLOAD_DIR}/yolo_models_v0.1.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()
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 AND VIAME_ENABLE_FASTER_RCNN )
set( EXAMPLE_INSTALL_FILES
${EXAMPLE_INSTALL_FILES}
multi_cnn_detector.pipe )
endif()
if( VIAME_ENABLE_MATLAB AND VIAME_ENABLE_UW_PREDICTOR )
set( EXAMPLE_INSTALL_FILES
${EXAMPLE_INSTALL_FILES}
camtrawl_pipeline.pipe )
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 )