first riorganization of the main cmakelist file