2020-03-16 11:50:35 +01:00
|
|
|
cmake_minimum_required(VERSION 3.16.0)
|
2020-03-10 12:16:58 +01:00
|
|
|
project(ScreenPlayWallpaper)
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
find_package(Qt5Qml)
|
|
|
|
find_package(Qt5Quick)
|
|
|
|
find_package(Qt5Gui)
|
|
|
|
find_package(Qt5Widgets)
|
|
|
|
find_package(Qt5Core)
|
|
|
|
set(src main.cpp
|
|
|
|
src/basewindow.cpp
|
|
|
|
src/linuxwindow.cpp
|
|
|
|
src/windowsdesktopproperties.cpp
|
|
|
|
src/winwindow.cpp
|
|
|
|
src/macintegration.cpp
|
|
|
|
src/macwindow.cpp)
|
|
|
|
set(headers src/basewindow.h
|
|
|
|
src/linuxwindow.h
|
|
|
|
src/windowsdesktopproperties.h
|
|
|
|
src/winwindow.h
|
|
|
|
src/macintegration.h
|
|
|
|
src/macbridge.h
|
|
|
|
src/macwindow.h)
|
|
|
|
set(resources SPWResources.qrc)
|
2020-03-10 12:34:34 +01:00
|
|
|
add_executable(ScreenPlayWallpaper ${src} ${headers} ${resources})
|
|
|
|
target_link_libraries( ScreenPlayWallpaper Qt5::Qml Qt5::Quick Qt5::Gui Qt5::Widgets Qt5::Core)
|
|
|
|
|
|
|
|
|
2020-03-10 12:16:58 +01:00
|
|
|
install(TARGETS DESTINATION Bin)
|