Thank you, Michael, but my goal is not to just build from source, but to run Postgres in an IDE. I tried CLion because it's modern and cross platform, but I am open to other IDEs.
What IDEs do Postgres hackers use (other than vi with gcc)? Is there any documentation or posts on how to set up the project in an IDE?