use ${CMAKE_BINARY_DIR} prefix for files generated by CMake

so that files are created in build dir and source dir is
never modified by building
Merge pull request #58 from hholzgra/hartmut-cmake-bug-584

use ${CMAKE_BINARY_DIR} prefix for files generated by CMake