I am trying to run the vmprotect_con on the binary file without a project file. I have marked the relevant sections of my C++ code with VMProtectBeginMutation("..") and VMProtectEnd(). And in CMake I have added add_custom_command() to invoke the vmprotect_con POST_BUILD on the generated target file. It was able to generate the intended protected binary.
By default the vmprotect_con packs the generated binary.
Code: Select all
...
Compiling... 100%
Saving... 100%
Packing... 100%
Saving startup code... 100%
[Information] Output file size is 16117740 bytes (115%)
Compilation completed
But, when the Pack the Output File is set to No via GUI the same generated binary runs without any issue.
I don't see any console option to turn off the packing without the project file. Is there any other way to do this?
Please guide me.