18 lines
356 B
CMake
18 lines
356 B
CMake
cmake_minimum_required(VERSION 2.8)
|
|
set(EXE_NAME tetris)
|
|
|
|
project(${EXE_NAME})
|
|
|
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
|
|
|
|
|
find_package(SDL2 REQUIRED)
|
|
find_package(SDL2_ttf REQUIRED)
|
|
include_directories(${SDL2_INCLUDE_DIR} ${SDL2TTF_INCLUDE_DIRS})
|
|
set(TETRIS_LIBRARIES ${SDL2_LIBRARY} ${SDL2TTF_LIBRARY} )
|
|
|
|
add_subdirectory(src)
|
|
|
|
|
|
|