estimate package to compile by catmake based on the current directory