forked from krips89/opendetection
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
69 lines (53 loc) · 2 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
set(SUBSYS_NAME global_image_detector)
set(LIB_NAME od_${SUBSYS_NAME})
set(SUBSYS_DESC "global feature based detection in 2D images")
set(SUBSYS_DEPS od_common ${OpenCV_LIBS} od_svmlight)
set(GTKMM_LIBRARIES_3 gtkmm-3.0 atkmm-1.6 gdkmm-3.0 giomm-2.4 pangomm-1.4 gtk-3 glibmm-2.4 cairomm-1.0 gdk-3 atk-1.0 gio-2.0 pangocairo-1.0 gdk_pixbuf-2.0 cairo-gobject pango-1.0 cairo sigc-2.0 gobject-2.0 glib-2.0)
set(build TRUE)
#PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON)
#PCL_SUBSYS_DEPEND(build "${SUBSYS_NAME}" DEPS ${SUBSYS_DEPS})
ADD_DEFINITIONS(
-std=c++11
${Caffe_DEFINITIONS}
)
if(build)
set(incs
"ODFaceRecognizer.h"
"detection/ODHOGDetector.h"
"detection/ODCascadeDetector.h"
"detection/ODConvClassification.h"
"localization/ODSelectiveSearchBase.h"
"localization/ODSelectiveSearchModel.h"
"training/ODHOGTrainer.h"
"training/ODConvTrainer.h"
"training/solver.h"
"training/network.h"
"annotation/ODAnnotation.h"
"annotation/ODAnnotator.h"
)
set(impl_incs
)
set(srcs
ODFaceRecognizer.cpp
"detection/ODHOGDetector.cpp"
"detection/ODCascadeDetector.cpp"
"detection/ODConvClassification.cpp"
"localization/ODSelectiveSearchBase.cpp"
"localization/ODSelectiveSearchModel.cpp"
"training/ODHOGTrainer.cpp"
"training/ODConvTrainer.cpp"
"training/solver.cpp"
"training/network.cpp"
"annotation/ODAnnotator.cpp"
"annotation/ODAnnotation.cpp"
)
OD_ADD_LIBRARY_ALL("${SUBSYS_NAME}" SRCS ${srcs} INCS ${incs} ${impl_incs})
install(FILES ${incs} DESTINATION ${OD_INSTALL_INCLUDE_DIR}/${SUBSYS_NAME} COMPONENT ${LIB_NAME})
if(SUBSYS_DEPS)
target_link_libraries("${LIB_NAME}" ${SUBSYS_DEPS} ${Caffe_LIBRARIES} ${OpenCV_LIBS} ${GTKMM_LIBRARIES_3})
endif(SUBSYS_DEPS)
if (WITH_GPU)
target_compile_definitions("${LIB_NAME}" PUBLIC WITH_GPU=${WITH_GPU})
endif()
#PCL_MAKE_PKGCONFIG("${LIB_NAME}" "${SUBSYS_NAME}" "${SUBSYS_DESC}" "${SUBSYS_DEPS}" "" "" "" "")
endif(build)