Register an application as default for specific MIME type
===

I am making a custom application, which uses CMake. I want the application to handle a specific MIME type, such that a web browser can open that file. How do I implement this using CMake?