summaryrefslogtreecommitdiffstats
path: root/cmake/vespaTargets.cmake
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-09-07 11:34:33 +0200
committerTor Egge <Tor.Egge@online.no>2023-09-07 11:34:33 +0200
commita980fb4526bad013e3f5498b57377dcc78eb2dc6 (patch)
treec8a308365d2d2604d9386b0318ad4d456e780dfe /cmake/vespaTargets.cmake
parentdaba552c567f1fcb9e300ae65825c1d97cedbb5e (diff)
Export vespa cmake config.
Diffstat (limited to 'cmake/vespaTargets.cmake')
-rw-r--r--cmake/vespaTargets.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/vespaTargets.cmake b/cmake/vespaTargets.cmake
new file mode 100644
index 00000000000..f2e3a3f5a03
--- /dev/null
+++ b/cmake/vespaTargets.cmake
@@ -0,0 +1,7 @@
+# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+# This file is included from vespaConfig.cmake and contains a list of
+# targets that are imported from vespa.
+
+add_library(searchlib SHARED IMPORTED)
+set_target_properties(searchlib PROPERTIES IMPORTED_LOCATION ${VESPA_HOME}/lib64/libsearchlib.so INTERFACE_INCLUDE_DIRECTORIES ${VESPA_INCLUDE_DIR})