Reorganized the cmakefile for better readability, isolating every dependency in its own section