Revert "Move package searches to main CMakeLists.txt file"

This reverts commit ad9630465fb0a86ba0edcf3ab8e219bb37324b5f.