2020-04-06 15:15:13 +08:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
|
|
|
|
project(pineapple-music LANGUAGES CXX)
|
|
|
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
2020-04-06 20:23:29 +08:00
|
|
|
find_package(Qt5 COMPONENTS Widgets Multimedia REQUIRED)
|
2020-04-06 15:15:13 +08:00
|
|
|
|
|
|
|
add_executable(pineapple-music
|
|
|
|
main.cpp
|
|
|
|
mainwindow.cpp
|
|
|
|
mainwindow.h
|
|
|
|
seekableslider.cpp
|
|
|
|
seekableslider.h
|
2020-04-07 19:09:08 +08:00
|
|
|
playlistmodel.h
|
|
|
|
playlistmodel.cpp
|
2020-04-06 15:15:13 +08:00
|
|
|
mainwindow.ui
|
|
|
|
resources.qrc
|
|
|
|
)
|
|
|
|
|
2020-04-06 20:23:29 +08:00
|
|
|
target_link_libraries(pineapple-music PRIVATE Qt5::Widgets Qt5::Multimedia)
|