File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
######################################################################################
2
2
# OpenCV Interface
3
3
######################################################################################
4
+ find_package (OpenCV REQUIRED)
4
5
add_library (freenect_cv SHARED libfreenect_cv.c)
5
6
set_target_properties (freenect_cv PROPERTIES
6
7
VERSION ${PROJECT_VER}
7
8
SOVERSION ${PROJECT_APIVER} )
8
9
9
10
include_directories (../c_sync)
10
11
11
- target_link_libraries (freenect_cv freenect_sync cv )
12
+ target_link_libraries (freenect_cv freenect_sync ${OpenCV_LIBS} )
12
13
13
14
install (TARGETS freenect_cv
14
15
DESTINATION "${PROJECT_LIBRARY_INSTALL_DIR} " )
15
16
install (FILES "libfreenect_cv.h"
16
17
DESTINATION ${PROJECT_INCLUDE_INSTALL_DIR} )
17
18
18
19
add_executable (cvdemo cvdemo.c)
19
- target_link_libraries (cvdemo freenect freenect_sync freenect_cv cv cxcore highgui )
20
+ target_link_libraries (cvdemo freenect freenect_sync freenect_cv ${OpenCV_LIBS} )
20
21
install (TARGETS cvdemo
21
22
DESTINATION bin)
You can’t perform that action at this time.
0 commit comments