mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-06 02:52:29 +01:00
9ce9467dd7
Downgrade to 3.16 that ships with Ubuntu 20.04 Fix QML modules that does not exists ( cmake on Windows just ignores this lol)
63 lines
1.2 KiB
CMake
63 lines
1.2 KiB
CMake
project(ScreenPlayWallpaper)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
|
find_package(
|
|
Qt5
|
|
COMPONENTS Quick
|
|
Widgets
|
|
Gui
|
|
WebEngine
|
|
REQUIRED)
|
|
|
|
|
|
if(WIN32)
|
|
set(src_plattform
|
|
src/windowsdesktopproperties.cpp
|
|
src/winwindow.cpp)
|
|
set(headers_plattform
|
|
src/windowsdesktopproperties.h
|
|
src/winwindow.h)
|
|
elseif(APPLE)
|
|
set(src_plattform
|
|
src/macintegration.cpp
|
|
src/macwindow.cpp)
|
|
set(headers_plattform
|
|
src/macintegration.h
|
|
src/macbridge.h
|
|
src/macwindow.h)
|
|
elseif(UNIX)
|
|
set(src_plattform
|
|
main.cpp
|
|
src/linuxwindow.cpp)
|
|
set(headers_plattform
|
|
src/linuxwindow.h)
|
|
endif()
|
|
|
|
set( src
|
|
main.cpp
|
|
src/basewindow.cpp)
|
|
set( headers
|
|
src/basewindow.h)
|
|
|
|
set(resources SPWResources.qrc)
|
|
add_executable(${PROJECT_NAME} ${src} ${headers} ${src_plattform} ${headers_plattform} ${resources})
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
PRIVATE
|
|
Qt5::Quick
|
|
Qt5::Gui
|
|
Qt5::Widgets
|
|
Qt5::Core
|
|
Qt5::WebEngine
|
|
ScreenPlaySDK
|
|
)
|
|
|
|
|
|
install(FILES
|
|
index.html
|
|
DESTINATION
|
|
${CMAKE_BINARY_DIR} )
|