summaryrefslogtreecommitdiff
path: root/cmake/CommonAPIConfig.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/CommonAPIConfig.cmake.in')
-rw-r--r--cmake/CommonAPIConfig.cmake.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmake/CommonAPIConfig.cmake.in b/cmake/CommonAPIConfig.cmake.in
new file mode 100644
index 0000000..2c4fea4
--- /dev/null
+++ b/cmake/CommonAPIConfig.cmake.in
@@ -0,0 +1,13 @@
+# Config file for the CommonAPI package
+# It defines the following variables
+# COMMONAPI_INCLUDE_DIRS - include directories for CommonAPI
+
+# Compute paths
+get_filename_component(COMMONAPI_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+set(COMMONAPI_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@")
+
+# Our library dependencies (contains definitions for IMPORTED targets)
+include("${COMMONAPI_CMAKE_DIR}/CommonAPITargets.cmake")
+
+set(COMMONAPI_VERSION @PACKAGE_VERSION@)
+set(COMMONAPI_VERSION_STRING "@PACKAGE_VERSION@")