diff options
Diffstat (limited to 'Source/WXDialog/bin/FindUPX.cmake')
-rw-r--r-- | Source/WXDialog/bin/FindUPX.cmake | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Source/WXDialog/bin/FindUPX.cmake b/Source/WXDialog/bin/FindUPX.cmake new file mode 100644 index 0000000..7623841 --- /dev/null +++ b/Source/WXDialog/bin/FindUPX.cmake @@ -0,0 +1,21 @@ +# +# Find the UPX packer program +# +# UPX_PROGRAM_PATH The full path to the UPX command (or UPX_PROGRAM_PATH-NOTFOUND when not found) +# UPX_FOUND Is set to 1 when upx is found + +FIND_PATH(UPX_PROGRAM_PATH upx.exe + "c:\Program Files\upx" + "d:\Program Files\upx" + "e:\Program Files\upx" + "f:\Program Files\upx" + "g:\Program Files\upx" + "h:\Program Files\upx" + ) + +# when found, note this as target +IF(UPX_PROGRAM_PATH) + SET(UPX_FOUND 1) +ELSE(UPX_PROGRAM_PATH) + SET(UPX_FOUND 0) +ENDIF(UPX_PROGRAM_PATH) |