Commit d0d112ac authored by JZP's avatar JZP

add INSTALL_TARGET_DIR in cmake

parent 8cad99c2
......@@ -9,4 +9,8 @@ endif()
FILE(GLOB OpenCVExtensions_SOURCES *.* ${ScreenCameraInfo_Source})
ADD_LIBRARY(OpenCVExtensions SHARED ${OpenCVExtensions_SOURCES})
TARGET_LINK_LIBRARIES(OpenCVExtensions ${OpenCV_LIBS})
if (INSTALL_TARGET_DIR)
install(TARGETS OpenCVExtensions DESTINATION ${INSTALL_TARGET_DIR})
else()
install(TARGETS OpenCVExtensions DESTINATION /usr/lib)
endif()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment