mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
Fix cmake files to be able to open the project in QtCreator
This commit is contained in:
parent
d1bee5aa8f
commit
2e20673e67
@ -8,47 +8,43 @@ 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")
|
||||
set(src main.cpp
|
||||
app.cpp
|
||||
src/createimportvideo.cpp
|
||||
src/installedlistmodel.cpp
|
||||
src/monitorlistmodel.cpp
|
||||
src/screenplaywallpaper.cpp
|
||||
src/screenplaywidget.cpp
|
||||
src/settings.cpp
|
||||
src/profilelistmodel.cpp
|
||||
src/installedlistfilter.cpp
|
||||
src/sdkconnector.cpp
|
||||
src/projectsettingslistmodel.cpp
|
||||
src/screenplaymanager.cpp
|
||||
src/util.cpp
|
||||
src/create.cpp)
|
||||
set(headers app.h
|
||||
src/globalvariables.h
|
||||
src/createimportvideo.h
|
||||
src/installedlistmodel.h
|
||||
src/monitorlistmodel.h
|
||||
src/screenplaywallpaper.h
|
||||
src/screenplaywidget.h
|
||||
src/settings.h
|
||||
src/profilelistmodel.h
|
||||
src/profile.h
|
||||
src/projectfile.h
|
||||
src/installedlistfilter.h
|
||||
src/sdkconnector.h
|
||||
src/projectsettingslistitem.h
|
||||
src/projectsettingslistmodel.h
|
||||
src/screenplaymanager.h
|
||||
src/util.h
|
||||
src/create.h)
|
||||
|
||||
set(resources Resources.qrc)
|
||||
add_executable(ScreenPlay ${src} ${headers} ${resources})
|
||||
target_link_libraries(ScreenPlay Qt5::Qml Qt5::Quick Qt5::Gui Qt5::Widgets Qt5::Core)
|
||||
#target_compile_definitions( PRIVATE GIT_VERSION=\\\"$$GIT_VERSION\\\")
|
||||
|
||||
install(TARGETS DESTINATION Bin)
|
||||
|
@ -6,11 +6,11 @@ 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)
|
||||
set(src screenplay-sdk_plugin.cpp
|
||||
screenplaysdk.cpp)
|
||||
set(headers screenplay-sdk_plugin.h
|
||||
screenplaysdk.h)
|
||||
add_library(screenplaysdk MODULE ${src} ${headers})
|
||||
target_link_libraries(screenplaysdk PRIVATE Qt5::Core Qt5::Quick Qt5::Gui Qt5::Qml)
|
||||
set_target_properties(screenplaysdk PROPERTIES DEBUG_POSTFIX "d")
|
||||
install(TARGETS screenplaysdk DESTINATION Libs)
|
||||
|
@ -17,7 +17,7 @@ set(headers screenplaysysinfo_plugin.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)
|
||||
|
||||
add_library(screenplaysysinfo MODULE ${src} ${headers})
|
||||
target_link_libraries(screenplaysysinfo PRIVATE Qt5::Core Qt5::Quick Qt5::Gui Qt5::Qml)
|
||||
install(TARGETS screenplaysysinfo DESTINATION Libs)
|
||||
|
@ -23,8 +23,8 @@ set(headers src/basewindow.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")
|
||||
add_executable(ScreenPlayWallpaper ${src} ${headers} ${resources})
|
||||
target_link_libraries( ScreenPlayWallpaper Qt5::Qml Qt5::Quick Qt5::Gui Qt5::Widgets Qt5::Core)
|
||||
|
||||
|
||||
install(TARGETS DESTINATION Bin)
|
||||
|
@ -12,5 +12,6 @@ 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)
|
||||
add_executable(ScreenPlayWidget ${src} ${headers} ${resources})
|
||||
target_link_libraries( ScreenPlayWidget Qt5::Qml Qt5::Quick Qt5::Gui Qt5::Widgets Qt5::Core)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user