-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
35 lines (26 loc) · 880 Bytes
/
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
cmake_minimum_required(VERSION 3.12)
project(QTetris)
set(CMAKE_CXX_STANDARD 14)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_PREFIX_PATH "/Users/dooglife/Qt/5.12.1/clang_64/lib/cmake")
set(SOURCE_FILES main.cpp
Bullet.cpp
TetrisPiece.cpp
PField.cpp
Tetris.cpp
TetrisScore.cpp)
find_package(Qt5Core REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Quick REQUIRED)
add_executable(QTetris ${SOURCE_FILES})
#include(FindPkgConfig)
find_package(CppUnitLite)
include_directories(${CPPUNITLITE_INCLUDE_DIR})
target_link_libraries(${PROJECT_NAME} ${CPPUNITLITE_LIBRARY})
target_link_libraries(QTetris Qt5::Core)
target_link_libraries(QTetris Qt5::Widgets)
target_link_libraries(QTetris Qt5::Quick)