Tetris/CMakeLists.txt
2014-11-07 20:47:50 +01:00

28 lines
474 B
CMake

cmake_minimum_required(VERSION 2.8)
project(tetris)
add_executable(
tetris
scoreitem.cpp
scorestate.cpp
stringinput.cpp
part.cpp
main.cpp
global.cpp
map.cpp
resource.cpp
game.cpp
pausestate.cpp
playstate.cpp
menustate.cpp
menuitem.cpp
menu.cpp
)
target_link_libraries(tetris SDL SDL_ttf)
set(CMAKE_CXX_FLAGS "-Wextra -ftabstop=4 -march=native -std=gnu++11 -fshow-column -ftabstop=4 -frounding-math -pipe")
install(TARGETS tetris RUNTIME DESTINATION bin)