complete compilation configuration with cmake