-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
53 lines (44 loc) · 1.1 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
cmake_minimum_required(VERSION 3.5)
project(Tetris LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 COMPONENTS Widgets REQUIRED)
find_package(Qt6 COMPONENTS OpenGLWidgets REQUIRED)
add_executable(Tetris
main.cpp
core/Board.cpp
core/Board.hpp
core/Tetromino.cpp
core/Tetromino.hpp
core/TetrominoFactory.cpp
core/TetrominoFactory.hpp
core/Tetromino_I.cpp
core/Tetromino_I.hpp
core/Tetromino_J.cpp
core/Tetromino_J.hpp
core/Tetromino_L.cpp
core/Tetromino_L.hpp
core/Tetromino_O.cpp
core/Tetromino_O.hpp
core/Tetromino_S.cpp
core/Tetromino_S.hpp
core/Tetromino_T.cpp
core/Tetromino_T.hpp
core/Tetromino_Z.cpp
core/Tetromino_Z.hpp
gui/MainWindow.cpp
gui/MainWindow.hpp
gui/RendererFacilities.cpp
gui/RendererFacilities.hpp
gui/RendererGame.cpp
gui/RendererGame.hpp
gui/RendererPreview.cpp
gui/RendererPreview.hpp
)
target_link_libraries(Tetris PRIVATE Qt6::Widgets)
target_link_libraries(Tetris PRIVATE Qt6::OpenGLWidgets)
add_subdirectory(doc)