mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-05 18:42:29 +01:00
Add autoconversion based of https://github.com/davidtazy/QMake2CMake
This commit is contained in:
parent
907719dd88
commit
d1bee5aa8f
12
CMakeLists.txt
Normal file
12
CMakeLists.txt
Normal file
@ -0,0 +1,12 @@
|
||||
cmake_minimum_required(VERSION 3.0.0 )
|
||||
project(ScreenPlay)
|
||||
add_subdirectory(ScreenPlay)
|
||||
add_subdirectory(ScreenPlaySDK)
|
||||
add_subdirectory(ScreenPlayWallpaper)
|
||||
add_subdirectory(ScreenPlayWidget)
|
||||
add_subdirectory(ScreenPlaySysInfo)
|
||||
add_subdirectory(Common/stomt-qt-sdk/sdk)
|
||||
add_subdirectory(Common/qt-google-analytics)
|
||||
add_subdirectory(Common/qt-breakpad)
|
||||
|
||||
|
54
ScreenPlay/CMakeLists.txt
Normal file
54
ScreenPlay/CMakeLists.txt
Normal file
@ -0,0 +1,54 @@
|
||||
cmake_minimum_required(VERSION 3.0.0 )
|
||||
project(ScreenPlay)
|
||||
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 $$PWD/main.cpp
|
||||
$$PWD/app.cpp
|
||||
$$PWD/src/createimportvideo.cpp
|
||||
$$PWD/src/installedlistmodel.cpp
|
||||
$$PWD/src/monitorlistmodel.cpp
|
||||
$$PWD/src/screenplaywallpaper.cpp
|
||||
$$PWD/src/screenplaywidget.cpp
|
||||
$$PWD/src/settings.cpp
|
||||
$$PWD/src/profilelistmodel.cpp
|
||||
$$PWD/src/installedlistfilter.cpp
|
||||
$$PWD/src/sdkconnector.cpp
|
||||
$$PWD/src/projectsettingslistmodel.cpp
|
||||
$$PWD/src/screenplaymanager.cpp
|
||||
$$PWD/src/util.cpp
|
||||
$$PWD/src/create.cpp)
|
||||
set(headers $$PWD/app.h
|
||||
$$PWD/src/globalvariables.h
|
||||
$$PWD/src/createimportvideo.h
|
||||
$$PWD/src/installedlistmodel.h
|
||||
$$PWD/src/monitorlistmodel.h
|
||||
$$PWD/src/screenplaywallpaper.h
|
||||
$$PWD/src/screenplaywidget.h
|
||||
$$PWD/src/settings.h
|
||||
$$PWD/src/profilelistmodel.h
|
||||
$$PWD/src/profile.h
|
||||
$$PWD/src/projectfile.h
|
||||
$$PWD/src/installedlistfilter.h
|
||||
$$PWD/src/sdkconnector.h
|
||||
$$PWD/src/projectsettingslistitem.h
|
||||
$$PWD/src/projectsettingslistmodel.h
|
||||
$$PWD/src/screenplaymanager.h
|
||||
$$PWD/src/util.h
|
||||
$$PWD/src/create.h)
|
||||
set(resources $$PWD/Resources.qrc)
|
||||
add_executable( ${src} ${headers} ${resources})
|
||||
target_link_libraries( PRIVATE Qt5::Qml Qt5::Quick Qt5::Gui Qt5::Widgets Qt5::Core)
|
||||
target_include_directories( PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/$$PWD/src/> $<INSTALL_INTERFACE:$$PWD/src/>)
|
||||
target_include_directories( PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/$$PWD/../Common/vcpkg/installed/x64-windows/include> $<INSTALL_INTERFACE:$$PWD/../Common/vcpkg/installed/x64-windows/include>)
|
||||
target_include_directories( PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/$$PWD/ThirdParty/steam/> $<INSTALL_INTERFACE:$$PWD/ThirdParty/steam/>)
|
||||
target_include_directories( PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/$$PWD/../Common/vcpkg/installed/x64-linux/include> $<INSTALL_INTERFACE:$$PWD/../Common/vcpkg/installed/x64-linux/include>)
|
||||
target_compile_definitions( PRIVATE QT_DEPRECATED_WARNINGS)
|
||||
target_compile_definitions( PRIVATE GIT_VERSION=\\\"$$GIT_VERSION\\\")
|
||||
set_target_properties( PROPERTIES DEBUG_POSTFIX "d")
|
||||
install(TARGETS DESTINATION Bin)
|
16
ScreenPlaySDK/CMakeLists.txt
Normal file
16
ScreenPlaySDK/CMakeLists.txt
Normal file
@ -0,0 +1,16 @@
|
||||
cmake_minimum_required(VERSION 3.0.0 )
|
||||
project(ScreenPlaySDK)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
find_package(Qt5Core)
|
||||
find_package(Qt5Quick)
|
||||
find_package(Qt5Gui)
|
||||
find_package(Qt5Qml)
|
||||
set(src $$PWD/screenplay-sdk_plugin.cpp
|
||||
$$PWD/screenplaysdk.cpp)
|
||||
set(headers $$PWD/screenplay-sdk_plugin.h
|
||||
$$PWD/screenplaysdk.h)
|
||||
add_library($$qtLibraryTarget($$TARGET) MODULE ${src} ${headers})
|
||||
target_link_libraries($$qtLibraryTarget($$TARGET) PRIVATE Qt5::Core Qt5::Quick Qt5::Gui Qt5::Qml)
|
||||
set_target_properties($$qtLibraryTarget($$TARGET) PROPERTIES DEBUG_POSTFIX "d")
|
||||
install(TARGETS $$qtLibraryTarget($$TARGET) DESTINATION Libs)
|
23
ScreenPlaySysInfo/CMakeLists.txt
Normal file
23
ScreenPlaySysInfo/CMakeLists.txt
Normal file
@ -0,0 +1,23 @@
|
||||
cmake_minimum_required(VERSION 3.0.0 )
|
||||
project(ScreenPlaySysInfo)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
find_package(Qt5Core)
|
||||
find_package(Qt5Quick)
|
||||
find_package(Qt5Gui)
|
||||
find_package(Qt5Qml)
|
||||
set(src screenplaysysinfo_plugin.cpp
|
||||
sysinfo.cpp
|
||||
cpu.cpp
|
||||
ram.cpp
|
||||
storage.cpp)
|
||||
set(headers screenplaysysinfo_plugin.h
|
||||
sysinfo.h
|
||||
cpu.h
|
||||
ram.h
|
||||
mathhelper.h
|
||||
storage.h)
|
||||
add_library($$qtLibraryTarget($$TARGET) MODULE ${src} ${headers})
|
||||
target_link_libraries($$qtLibraryTarget($$TARGET) PRIVATE Qt5::Core Qt5::Quick Qt5::Gui Qt5::Qml)
|
||||
set_target_properties($$qtLibraryTarget($$TARGET) PROPERTIES DEBUG_POSTFIX "d")
|
||||
install(TARGETS $$qtLibraryTarget($$TARGET) DESTINATION Libs)
|
30
ScreenPlayWallpaper/CMakeLists.txt
Normal file
30
ScreenPlayWallpaper/CMakeLists.txt
Normal file
@ -0,0 +1,30 @@
|
||||
cmake_minimum_required(VERSION 3.0.0 )
|
||||
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)
|
||||
add_executable( ${src} ${headers} ${resources})
|
||||
target_link_libraries( PRIVATE Qt5::Qml Qt5::Quick Qt5::Gui Qt5::Widgets Qt5::Core)
|
||||
target_compile_definitions( PRIVATE QT_DEPRECATED_WARNINGS)
|
||||
set_target_properties( PROPERTIES DEBUG_POSTFIX "d")
|
||||
install(TARGETS DESTINATION Bin)
|
16
ScreenPlayWidget/CMakeLists.txt
Normal file
16
ScreenPlayWidget/CMakeLists.txt
Normal file
@ -0,0 +1,16 @@
|
||||
cmake_minimum_required(VERSION 3.0.0 )
|
||||
project(ScreenPlayWidget)
|
||||
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/widgetwindow.cpp)
|
||||
set(headers src/widgetwindow.h)
|
||||
set(resources SPWidgetResources.qrc)
|
||||
target_link_libraries( PRIVATE Qt5::Qml Qt5::Quick Qt5::Gui Qt5::Widgets Qt5::Core)
|
||||
target_compile_definitions( PRIVATE QT_DEPRECATED_WARNINGS)
|
Loading…
Reference in New Issue
Block a user