mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-06 02:52:29 +01:00
d5276b8169
Because the WebEngine got renamed we have to make it this ugly. This will only work with Qt5 for now because Qt6 still breaks things.
25 lines
717 B
CMake
25 lines
717 B
CMake
project(ScreenPlaySDK LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_AUTORCC ON)
|
|
set(CMAKE_AUTOMOC ON)
|
|
find_package(
|
|
QT NAMES Qt6 Qt5
|
|
COMPONENTS Quick Network Core
|
|
REQUIRED)
|
|
find_package(
|
|
Qt${QT_VERSION_MAJOR}
|
|
COMPONENTS Quick Network Core
|
|
REQUIRED)
|
|
|
|
set(src src/screenplay-sdk_plugin.cpp src/screenplaysdk.cpp)
|
|
|
|
set(headers inc/screenplay-sdk_plugin.h inc/screenplaysdk.h)
|
|
|
|
add_library(${PROJECT_NAME} ${src} ${headers})
|
|
|
|
target_include_directories(${PROJECT_NAME} PUBLIC inc)
|
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Quick Qt${QT_VERSION_MAJOR}::Gui
|
|
Qt${QT_VERSION_MAJOR}::Network)
|