Created
October 28, 2018 15:24
-
-
Save traversaro/c8d9b2aa7c197e0d12dc44759f0e4d4a to your computer and use it in GitHub Desktop.
SDL Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.5) | |
find_package(SDL REQUIRED) | |
add_executable(SDL_test SDL_test.cpp) | |
target_include_directories(SDL_test PRIVATE ${SDL_INCLUDE_DIR}) | |
target_link_libraries(SDL_test PRIVATE ${SDL_LIBRARY}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SDL.h> | |
int main() | |
{ | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment