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.
As I am integrating the vmprotect_con with the CMake build system I need to use it without a “.vmp” project file. The markers are defined in the code to protect the relevant sections and these markers will increase as new code is added. We can’t have an intermediate manual step of opening the executable in vmprotect_gui and then creating a “.vmp” file.
The whole reason we purchased the professional version was to get rid of the manual step of using GUI and use the console version entirely to generate the final protected executable as the part of the build system itself.
Or is there a way to generate the “.vmp” file from the codebase on the console without using the vmprotect_gui?