applied cmake into Singleton