cmake: Model normal and try-compile project kinds explicitly
Construct cmake
objects with their mode and project kind. Avoid mutating the mode/kind after construction.
Construct cmake
objects with their mode and project kind. Avoid mutating the mode/kind after construction.