Open GrahamNZ opened 1 year ago
Hey @GrahamNZ, do you know if this is supported by CMake in any way? Any pointers in that direction would be very helpful.
I believe you need to include a version resource file (*.rc) that is used by the linker, but I'm not sure how to achieve that in CMake. I think creating the file is an option in Visual Studio?
It must be something that can be automated. Manual steps don't scale.
CMake should have something on this front. You can try asking ChatGPT to see if it can give you a pointer :D
OK, here is an example on simpleble.dll but it probably needs to be done for the other files too, and I don't know enough about the structures to know if I've done it in the right place. But it should be a good starting point.
The simpleble.dll in ..\build_simpleble\bin\Release now has the file details.
Windows files have properties such as version, description, copyright etc that installation programs such as Inno Setup can use to ensure that new versions aren't overwritten with old ones.