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.
7 # UPX: http://wildsau.idv.uni-linz.ac.at/mfx/upx.html
11 FIND_PROGRAM(SELF_PACKER_FOR_EXECUTABLE
13 ${CYGWIN_INSTALL_PATH}/bin
20 FIND_PROGRAM(SELF_PACKER_FOR_SHARED_LIB
22 ${CYGWIN_INSTALL_PATH}/bin
30 SELF_PACKER_FOR_EXECUTABLE
31 SELF_PACKER_FOR_SHARED_LIB
37 IF (SELF_PACKER_FOR_EXECUTABLE MATCHES "upx")
38 SET (SELF_PACKER_FOR_EXECUTABLE_FLAGS "-q" CACHE STRING
39 "Flags for the executable self-packer.")
40 ELSE (SELF_PACKER_FOR_EXECUTABLE MATCHES "upx")
41 SET (SELF_PACKER_FOR_EXECUTABLE_FLAGS "" CACHE STRING
42 "Flags for the executable self-packer.")
43 ENDIF (SELF_PACKER_FOR_EXECUTABLE MATCHES "upx")
45 IF (SELF_PACKER_FOR_SHARED_LIB MATCHES "upx")
46 SET (SELF_PACKER_FOR_SHARED_LIB_FLAGS "-q" CACHE STRING
47 "Flags for the shared lib self-packer.")
48 ELSE (SELF_PACKER_FOR_SHARED_LIB MATCHES "upx")
49 SET (SELF_PACKER_FOR_SHARED_LIB_FLAGS "" CACHE STRING
50 "Flags for the shared lib self-packer.")
51 ENDIF (SELF_PACKER_FOR_SHARED_LIB MATCHES "upx")
54 SELF_PACKER_FOR_EXECUTABLE_FLAGS
55 SELF_PACKER_FOR_SHARED_LIB_FLAGS