add a cmake option WITH_TOOLS
Merge pull request #1052 from alex85k/patch-4

add a cmake option WITH_TOOLS