Update cmake to accept defines