aboutsummaryrefslogtreecommitdiff
path: root/deeptagger/CMakeLists.txt
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-01-07 23:26:05 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-01-18 18:31:09 +0100
commitb4f28814b7f5cf1d2375963db81f554d470aef83 (patch)
tree6598b3076c270ba5f91a20fc2a47d4ed4e0408be /deeptagger/CMakeLists.txt
parent054078908a1e4c7429ea0f5a3a0605addfccc46c (diff)
downloadgallery-b4f28814b7f5cf1d2375963db81f554d470aef83.tar.gz
gallery-b4f28814b7f5cf1d2375963db81f554d470aef83.tar.xz
gallery-b4f28814b7f5cf1d2375963db81f554d470aef83.zip
Add a deep tagger in C++
Diffstat (limited to 'deeptagger/CMakeLists.txt')
-rw-r--r--deeptagger/CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/deeptagger/CMakeLists.txt b/deeptagger/CMakeLists.txt
new file mode 100644
index 0000000..9c10bef
--- /dev/null
+++ b/deeptagger/CMakeLists.txt
@@ -0,0 +1,20 @@
+# Ubuntu 20.04 LTS
+cmake_minimum_required (VERSION 3.16)
+project (deeptagger VERSION 0.0.1 LANGUAGES CXX)
+
+# Hint: set ONNXRuntime_ROOT to a directory with a pre-built GitHub release.
+# (Useful for development, otherwise you may need to adjust the rpath.)
+set (CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}")
+
+find_package (ONNXRuntime REQUIRED)
+find_package (PkgConfig REQUIRED)
+pkg_check_modules (GM REQUIRED GraphicsMagick++)
+
+add_executable (deeptagger deeptagger.cpp)
+target_compile_features (deeptagger PRIVATE cxx_std_17)
+target_include_directories (deeptagger PRIVATE
+ ${GM_INCLUDE_DIRS} ${ONNXRuntime_INCLUDE_DIRS})
+target_link_directories (deeptagger PRIVATE
+ ${GM_LIBRARY_DIRS})
+target_link_libraries (deeptagger PRIVATE
+ ${GM_LIBRARIES} ${ONNXRuntime_LIBRARIES})