Disable building examples by default. Let me now if you not agree with it.
Use CMAKE_CURRENT_SOURCE_DIR instead of CMAKE_SOURCE_DIR. Otherwise you will have an error if you will build the project as a sub-directory of another.
Add an option to disable install rules. This is needed if user want to use this library as a static.
CMAKE_CURRENT_SOURCE_DIR
instead ofCMAKE_SOURCE_DIR
. Otherwise you will have an error if you will build the project as a sub-directory of another.