summaryrefslogtreecommitdiffstats
path: root/libfreerdp/FreeRDPConfig.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'libfreerdp/FreeRDPConfig.cmake.in')
-rw-r--r--libfreerdp/FreeRDPConfig.cmake.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/libfreerdp/FreeRDPConfig.cmake.in b/libfreerdp/FreeRDPConfig.cmake.in
new file mode 100644
index 0000000..21ecd59
--- /dev/null
+++ b/libfreerdp/FreeRDPConfig.cmake.in
@@ -0,0 +1,18 @@
+include(CMakeFindDependencyMacro)
+find_dependency(WinPR @FREERDP_VERSION@)
+
+@PACKAGE_INIT@
+
+set(FreeRDP_VERSION_MAJOR "@FREERDP_VERSION_MAJOR@")
+set(FreeRDP_VERSION_MINOR "@FREERDP_VERSION_MINOR@")
+set(FreeRDP_VERSION_REVISION "@FREERDP_VERSION_REVISION@")
+
+set_and_check(FreeRDP_INCLUDE_DIR "@PACKAGE_FREERDP_INCLUDE_DIR@")
+
+set(FreeRDP_INSTALL_PREFIX "@FREERDP_INSTALL_PREFIX@")
+set(FreeRDP_RELATIVE_PLUGIN_DIR "@FREERDP_PLUGIN_PATH@")
+set(FreeRDP_PLUGIN_DIR "${FreeRDP_INSTALL_PREFIX}/${FreeRDP_RELATIVE_PLUGIN_DIR}")
+set(FreeRDP_PROXY_PLUGIN_DIR "${FreeRDP_PLUGIN_DIR}/proxy")
+set(FreeRDP_EXTENSION_DIR "${FreeRDP_PLUGIN_DIR}/extensions")
+
+include("${CMAKE_CURRENT_LIST_DIR}/FreeRDPTargets.cmake")