2 # This module looks for some executable packers (i.e. software that
3 # compress executables or shared libs into on-the-fly self-extracting
4 # executables or shared libs.
6 # UPX: http://wildsau.idv.uni-linz.ac.at/mfx/upx.html
8 #=============================================================================
9 # Copyright 2001-2009 Kitware, Inc.
11 # Distributed under the OSI-approved BSD License (the "License");
12 # see accompanying file Copyright.txt for details.
14 # This software is distributed WITHOUT ANY WARRANTY; without even the
15 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 # See the License for more information.
17 #=============================================================================
18 # (To distribute this file outside of CMake, substitute the full
19 # License text for the above reference.)
23 find_program(SELF_PACKER_FOR_EXECUTABLE
25 ${CYGWIN_INSTALL_PATH}/bin
32 find_program(SELF_PACKER_FOR_SHARED_LIB
34 ${CYGWIN_INSTALL_PATH}/bin
42 SELF_PACKER_FOR_EXECUTABLE
43 SELF_PACKER_FOR_SHARED_LIB
49 if (SELF_PACKER_FOR_EXECUTABLE MATCHES "upx")
50 set (SELF_PACKER_FOR_EXECUTABLE_FLAGS "-q" CACHE STRING
51 "Flags for the executable self-packer.")
53 set (SELF_PACKER_FOR_EXECUTABLE_FLAGS "" CACHE STRING
54 "Flags for the executable self-packer.")
57 if (SELF_PACKER_FOR_SHARED_LIB MATCHES "upx")
58 set (SELF_PACKER_FOR_SHARED_LIB_FLAGS "-q" CACHE STRING
59 "Flags for the shared lib self-packer.")
61 set (SELF_PACKER_FOR_SHARED_LIB_FLAGS "" CACHE STRING
62 "Flags for the shared lib self-packer.")
66 SELF_PACKER_FOR_EXECUTABLE_FLAGS
67 SELF_PACKER_FOR_SHARED_LIB_FLAGS