forked from OpenKinect/libfreenect
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opencv wrapper: Use the CMake OpenCV finder instead of naming librari…
…es explicitly. Signed-off-by: Drew Fisher <[email protected]>
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
###################################################################################### | ||
# OpenCV Interface | ||
###################################################################################### | ||
find_package(OpenCV REQUIRED) | ||
add_library (freenect_cv SHARED libfreenect_cv.c) | ||
set_target_properties (freenect_cv PROPERTIES | ||
VERSION ${PROJECT_VER} | ||
SOVERSION ${PROJECT_APIVER}) | ||
|
||
include_directories (../c_sync) | ||
|
||
target_link_libraries (freenect_cv freenect_sync cv) | ||
target_link_libraries (freenect_cv freenect_sync ${OpenCV_LIBS}) | ||
|
||
install (TARGETS freenect_cv | ||
DESTINATION "${PROJECT_LIBRARY_INSTALL_DIR}") | ||
install (FILES "libfreenect_cv.h" | ||
DESTINATION ${PROJECT_INCLUDE_INSTALL_DIR}) | ||
|
||
add_executable(cvdemo cvdemo.c) | ||
target_link_libraries(cvdemo freenect freenect_sync freenect_cv cv cxcore highgui) | ||
target_link_libraries(cvdemo freenect freenect_sync freenect_cv ${OpenCV_LIBS}) | ||
install (TARGETS cvdemo | ||
DESTINATION bin) |