[#32] Changing cmake configuration to be more flexible and when compiling application.
Merge pull request #9 from leag37/cmake_config

Resolves #32