diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-04-24 20:45:39 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-04-24 20:45:39 +0200 |
commit | a424e89c6598f21705ea0fba68aa20e6dc766e01 (patch) | |
tree | 2e58d2ed87efd02e82c6cc109fbefa3301e33092 /tracker-aruco | |
parent | 178e46f361a5f1ac441d06135ca3ba55184c080a (diff) |
tracker/aruco: install if shared
Diffstat (limited to 'tracker-aruco')
-rw-r--r-- | tracker-aruco/CMakeLists.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tracker-aruco/CMakeLists.txt b/tracker-aruco/CMakeLists.txt index 7f7871ef..69fe7aa1 100644 --- a/tracker-aruco/CMakeLists.txt +++ b/tracker-aruco/CMakeLists.txt @@ -13,9 +13,6 @@ find_package(OpenCV QUIET) if(OpenCV_FOUND) set(SDK_ARUCO_LIBPATH "" CACHE FILEPATH "Aruco paper marker tracker static library path") if(SDK_ARUCO_LIBPATH) - - maybe_add_static_define() - set(modules "${SDK_ARUCO_LIBPATH}" opencv_calib3d opencv_imgproc opencv_core) get_filename_component(dir "${SDK_ARUCO_LIBPATH}" DIRECTORY) @@ -31,8 +28,10 @@ if(OpenCV_FOUND) message(FATAL_ERROR "${krap}\n" "Must use Aruco fork from <https://github.com/opentrack/aruco>") endif() - otr_module(tracker-aruco) + maybe_add_static_define() + otr_install_lib("${SDK_ARUCO_LIBPATH}" "${opentrack-hier-pfx}") + otr_module(tracker-aruco) target_include_directories(${self} SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS} "${dir}") target_link_libraries(${self} opentrack-cv ${modules}) endif() |