[CMake] External dependencies and Windows

Ansis Māliņš ansis.malins at gmail.com
Mon Feb 4 09:14:20 EST 2013


It looks like I'm still asking the wrong questions.

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?

SDL2 only exists in source form in their repository.

This is my main.cpp:
#include <SDL.h>
int main(int argc, char** argv)
{
if (SDL_Init(SDL_INIT_VIDEO) < 0) printf("FAILURE\n");
 else printf("SUCCESS\n");
SDL_Quit();
 return 0;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130204/b0f93d0d/attachment.htm>


More information about the CMake mailing list