summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-18 09:40:23 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-18 09:40:46 +0100
commita7a60c8f5328d8d1b6dbb2d73635ab64aa480d41 (patch)
tree2394df68f8cb40825ef6afcb89afbc81ec88f4f8 /tracker-pt
parent0d32aec11d09f1ac1088b05a214432b6be4b534b (diff)
tracker/pt: split impl and algorithm
Issue: #718
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/CMakeLists.txt5
-rw-r--r--tracker-pt/export.hpp14
-rw-r--r--tracker-pt/module.cxx (renamed from tracker-pt/module.cpp)0
3 files changed, 13 insertions, 6 deletions
diff --git a/tracker-pt/CMakeLists.txt b/tracker-pt/CMakeLists.txt
index aa4c89f6..a02bdfe0 100644
--- a/tracker-pt/CMakeLists.txt
+++ b/tracker-pt/CMakeLists.txt
@@ -1,7 +1,10 @@
find_package(OpenCV 3.0 QUIET)
if(OpenCV_FOUND)
- otr_module(tracker-pt)
+ otr_module(tracker-pt-base STATIC)
+ target_include_directories(opentrack-tracker-pt-base SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS})
+
set(modules opencv_core opencv_videoio opencv_imgproc)
+ otr_module(tracker-pt SOURCES module.cxx)
target_link_libraries(opentrack-tracker-pt opentrack-cv ${modules})
target_include_directories(opentrack-tracker-pt SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS})
endif()
diff --git a/tracker-pt/export.hpp b/tracker-pt/export.hpp
index a733c9fe..cef63f83 100644
--- a/tracker-pt/export.hpp
+++ b/tracker-pt/export.hpp
@@ -2,10 +2,14 @@
#pragma once
-#include "compat/linkage-macros.hpp"
-
-#ifdef BUILD_TRACKER_PT
-# define OTR_PT_EXPORT OTR_GENERIC_EXPORT
+#if 0
+# include "compat/linkage-macros.hpp"
+# ifdef BUILD_TRACKER_PT
+# define OTR_PT_EXPORT OTR_GENERIC_EXPORT
+# else
+# define OTR_PT_EXPORT OTR_GENERIC_IMPORT
+# endif
#else
-# define OTR_PT_EXPORT OTR_GENERIC_IMPORT
+// static link
+# define OTR_PT_EXPORT
#endif
diff --git a/tracker-pt/module.cpp b/tracker-pt/module.cxx
index 5c298ca5..5c298ca5 100644
--- a/tracker-pt/module.cpp
+++ b/tracker-pt/module.cxx