<div dir="ltr">It looks like I'm still asking the wrong questions.<br><div><br></div><div style>As a last resort, here's my specific problem: I want to compile and run a hello world SDL2 application on Windows, Linux, and OS X - purely as an exercise in CMake. How would YOU do this?</div>
<div style><br></div><div style>SDL2 only exists in source form in their repository.<br></div><div style><br></div><div style>This is my main.cpp:</div><div style><div><font face="courier new, monospace">#include <SDL.h></font></div>
<div><font face="courier new, monospace">int main(int argc, char** argv)</font></div><div><font face="courier new, monospace">{</font></div><div><font face="courier new, monospace"><span class="" style="white-space:pre">        </span>if (SDL_Init(SDL_INIT_VIDEO) < 0) printf("FAILURE\n");</font></div>
<div><font face="courier new, monospace"><span class="" style="white-space:pre">        </span>else printf("SUCCESS\n");</font></div><div><font face="courier new, monospace"><span class="" style="white-space:pre">        </span>SDL_Quit();</font></div>
<div><font face="courier new, monospace"><span class="" style="white-space:pre">        </span>return 0;</font></div><div><font face="courier new, monospace">}</font></div></div></div>