Added CMake option to include test targets.