If you want to store gloabal path you must use static const variables. I strongly recomend to avoid BINARY_DIR redifinition. It's simplier to use local variables.
For example:
const string searchPath = BINARY_DIR "/input.txt";