aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-04-07 12:55:42 -0700
committerGerald Combs <gerald@wireshark.org>2015-04-14 19:11:50 +0000
commit495740f801ccb4ce73f517a3a99ba8dacdba744c (patch)
tree9d432f032b7202d80575c0bfeaf3ba2944050db0 /cmake
parent1404605513cedd34070154aa355663b8e4734bc4 (diff)
CMake: Initial PortableApps targets.
Add portableapps_app_dir and portableapps_package targets. Change-Id: Ifea3d952eef0e267de6364999d45807236d99102 Reviewed-on: https://code.wireshark.org/review/8025 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindPortableApps.cmake26
1 files changed, 26 insertions, 0 deletions
diff --git a/cmake/modules/FindPortableApps.cmake b/cmake/modules/FindPortableApps.cmake
new file mode 100644
index 0000000000..17ee15ae2e
--- /dev/null
+++ b/cmake/modules/FindPortableApps.cmake
@@ -0,0 +1,26 @@
+#
+# - Find PortableApps
+# Find the PortableApps LauncherGenerator and Installer commands
+#
+# PORTABLEAPPS_LAUNCHER_GENERATOR_EXECUTABLE - path to the PortableApps.comLauncherGenerator utility.
+# PORTABLEAPPS_INSTALLER_EXECUTABLE - path to the PortableApps.comInstaller utility.
+
+# Find PortableApps.comLauncherGenerator
+find_program(PORTABLEAPPS_LAUNCHER_GENERATOR_EXECUTABLE PortableApps.comLauncherGenerator
+ PATH
+ "C:/PortableApps/PortableApps.comLauncher"
+ "$ENV{USERPROFILE}/PortableApps/PortableApps.comLauncher"
+ DOC "Path to the PortableApps.comLauncherGenerator utility."
+)
+
+# Find PortableApps.comInstaller
+find_program(PORTABLEAPPS_INSTALLER_EXECUTABLE PortableApps.comInstaller
+ PATH
+ "C:/PortableApps/PortableApps.comInstaller"
+ "$ENV{USERPROFILE}/PortableApps/PortableApps.comInstaller"
+ DOC "Path to the PortableApps.comInstaller utility."
+)
+
+# Assume that FindNSIS has taken care of this for us.
+# set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP TRUE)
+# include(InstallRequiredSystemLibraries)