Adjusted CMakeLists.txt to not use fixed paths, and made sure the needed environment variables are set in .gitlab-ci.yml