made cmake for flexible for the project