Fix CMakeList for test

It seems that new versions of CMake overwrite variables in find_package
rather than append.