Saturday, July 8, 2017

CMake + SDL2

cmake_minimum_required(VERSION 3.8)
project(SDL_test)

set(CMAKE_CXX_STANDARD 11)

include_directories(C:/SDL2mingw64/include)
link_directories(C:/SDL2mingw64/lib)

set(SOURCE_FILES main.cpp)
add_executable(SDL_test ${SOURCE_FILES})

target_link_libraries(SDL_test mingw32 SDL2main SDL2)

No comments: