17 lines
432 B
CMake
17 lines
432 B
CMake
project(sdl2forthewin)
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
# Point to our own cmake modules
|
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMakeModules)
|
|
|
|
# Find SDL2
|
|
find_package(SDL2 REQUIRED)
|
|
|
|
# Add global definitions
|
|
add_definitions("-Wall")
|
|
include_directories(${SDL2_INCLUDE_DIR})
|
|
|
|
add_executable(sdl2forthewin main.cpp)
|
|
install(TARGETS sdl2forthewin DESTINATION bin)
|
|
target_link_libraries(sdl2forthewin ${SDL2_LIBRARIES})
|