Move link_directories for SGP4 and GSL libraries to outside conditional block. Move main block to after dependencies in main CMakeLists.