2 # This module looks for some executable packers (i.e. softwares 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
10 FIND_PROGRAM(SELF_PACKER_FOR_EXECUTABLE
12 ${CYGWIN_INSTALL_PATH}/bin
19 FIND_PROGRAM(SELF_PACKER_FOR_SHARED_LIB
21 ${CYGWIN_INSTALL_PATH}/bin
29 SELF_PACKER_FOR_EXECUTABLE
30 SELF_PACKER_FOR_SHARED_LIB
36 IF (SELF_PACKER_FOR_EXECUTABLE MATCHES "upx")
37 SET (SELF_PACKER_FOR_EXECUTABLE_FLAGS "-q" CACHE STRING
38 "Flags for the executable self-packer.")
39 ELSE (SELF_PACKER_FOR_EXECUTABLE MATCHES "upx")
40 SET (SELF_PACKER_FOR_EXECUTABLE_FLAGS "" CACHE STRING
41 "Flags for the executable self-packer.")
42 ENDIF (SELF_PACKER_FOR_EXECUTABLE MATCHES "upx")
44 IF (SELF_PACKER_FOR_SHARED_LIB MATCHES "upx")
45 SET (SELF_PACKER_FOR_SHARED_LIB_FLAGS "-q" CACHE STRING
46 "Flags for the shared lib self-packer.")
47 ELSE (SELF_PACKER_FOR_SHARED_LIB MATCHES "upx")
48 SET (SELF_PACKER_FOR_SHARED_LIB_FLAGS "" CACHE STRING
49 "Flags for the shared lib self-packer.")
50 ENDIF (SELF_PACKER_FOR_SHARED_LIB MATCHES "upx")
53 SELF_PACKER_FOR_EXECUTABLE_FLAGS
54 SELF_PACKER_FOR_SHARED_LIB_FLAGS