I have written some C++ libraries and executables in a CMake project. I need to create an installer like a DEB file or an EXE file for them. My issue is that I need to make sure that the only open files are the header files. I need to hide the implementations of the classes and executables. How do I package the software such that the implementations are hidden from the users?
Here are some other sources I have referred to:
https://stackoverflow.com/questions/13144181/how-to-create-an-installer-with-cmake-cpack-nsis-on-windows
https://stackoverflow.com/questions/10086615/cmake-cpack-debian-packages
The CMake cookbook (the book from Packt) goes into packaging software, but I cannot figure out how secure the generated files are from the text.
What is the goal of this encryption? I need to be able to send a header file and a secured compiled file so that the code can be used by somebody without access to the implementation.