replaced target_compile_definitions() with set command to work with cmake version 2.8.8