diff ui/CMakeLists.txt @ 1019:4f999c7821ce 0.9

Strip created executables
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 02 Sep 2014 16:03:40 +0200
parents 8fb1b912fd8e
children 126e5ce4d1d1
line wrap: on
line diff
--- a/ui/CMakeLists.txt	Tue Sep 02 15:41:40 2014 +0200
+++ b/ui/CMakeLists.txt	Tue Sep 02 16:03:40 2014 +0200
@@ -223,3 +223,28 @@
   configure_file(trustbridge-tray-starter.sh trustbridge-tray-starter.sh COPYONLY)
   install(FILES trustbridge-tray-starter.sh DESTINATION bin)
 endif()
+
+# Strip the binaries
+if (WIN32)
+   add_custom_command(
+      TARGET trustbridge
+      POST_BUILD
+      COMMAND ${CMAKE_STRIP} trustbridge.exe
+   )
+   add_custom_command(
+      TARGET trustbridge-admin
+      POST_BUILD
+      COMMAND ${CMAKE_STRIP} trustbridge-admin.exe
+   )
+else()
+   add_custom_command(
+      TARGET trustbridge
+      POST_BUILD
+      COMMAND strip trustbridge
+   )
+   add_custom_command(
+      TARGET trustbridge-admin
+      POST_BUILD
+      COMMAND ${CMAKE_STRIP} trustbridge-admin
+   )
+endif()

http://wald.intevation.org/projects/trustbridge/