2020-10-29 18:53:52 +01:00
|
|
|
project(ScreenPlaySDK LANGUAGES CXX)
|
2020-04-30 20:03:14 +02:00
|
|
|
|
2021-01-28 15:19:46 +01:00
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
2020-04-30 20:03:14 +02:00
|
|
|
set(CMAKE_AUTORCC ON)
|
2020-03-10 12:16:58 +01:00
|
|
|
set(CMAKE_AUTOMOC ON)
|
2020-04-30 20:03:14 +02:00
|
|
|
find_package(
|
2021-06-20 18:50:54 +02:00
|
|
|
QT NAMES Qt6 Qt5
|
|
|
|
COMPONENTS Quick Network Core
|
|
|
|
REQUIRED)
|
|
|
|
find_package(
|
|
|
|
Qt${QT_VERSION_MAJOR}
|
2020-10-29 18:53:52 +01:00
|
|
|
COMPONENTS Quick Network Core
|
|
|
|
REQUIRED)
|
2020-04-30 20:03:14 +02:00
|
|
|
|
2020-10-29 18:53:52 +01:00
|
|
|
set(src src/screenplay-sdk_plugin.cpp src/screenplaysdk.cpp)
|
2020-05-16 13:37:32 +02:00
|
|
|
|
2020-10-29 18:53:52 +01:00
|
|
|
set(headers inc/screenplay-sdk_plugin.h inc/screenplaysdk.h)
|
2020-04-30 20:03:14 +02:00
|
|
|
|
2020-10-29 18:53:52 +01:00
|
|
|
add_library(${PROJECT_NAME} ${src} ${headers})
|
2020-04-30 20:03:14 +02:00
|
|
|
|
2021-06-20 18:50:54 +02:00
|
|
|
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)
|
2020-07-13 17:58:03 +02:00
|
|
|
|
2020-10-29 18:53:52 +01:00
|
|
|
target_include_directories(${PROJECT_NAME} PUBLIC inc)
|