2020-10-29 18:53:52 +01:00
|
|
|
project(ScreenPlayShader LANGUAGES CXX)
|
2020-09-10 11:40:07 +02:00
|
|
|
|
2021-01-28 15:19:46 +01:00
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
2020-09-10 11:40:07 +02:00
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
2021-09-10 11:09:38 +02:00
|
|
|
|
2020-09-10 11:40:07 +02:00
|
|
|
find_package(
|
2021-09-10 11:09:38 +02:00
|
|
|
Qt6
|
2020-10-29 18:53:52 +01:00
|
|
|
COMPONENTS Quick Core
|
|
|
|
REQUIRED)
|
2020-09-10 11:40:07 +02:00
|
|
|
|
2021-10-15 15:06:05 +02:00
|
|
|
set(SOURCES # cmake-format: sortable
|
|
|
|
screenplayshader_plugin.cpp shaderlibrary.cpp)
|
|
|
|
|
|
|
|
set(HEADER # cmake-format: sortable
|
|
|
|
screenplayshader_plugin.h shaderlibrary.h)
|
|
|
|
|
|
|
|
qt_add_resources(RESOURCES Resources.qrc)
|
|
|
|
|
|
|
|
add_library(${PROJECT_NAME} SHARED ${SOURCES} ${HEADER} ${RESOURCES})
|
|
|
|
|
|
|
|
qt_add_qml_module(
|
|
|
|
${PROJECT_NAME}
|
|
|
|
URI
|
|
|
|
${PROJECT_NAME}
|
|
|
|
VERSION
|
|
|
|
1.0
|
|
|
|
QML_FILES
|
|
|
|
ShadertoyShader.qml)
|
|
|
|
|
|
|
|
target_include_directories(${PROJECT_NAME} PRIVATE inc)
|
|
|
|
|
|
|
|
target_compile_definitions(${PROJECT_NAME} PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)
|
2021-06-25 16:28:30 +02:00
|
|
|
|
2021-09-10 11:09:38 +02:00
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE Qt6::Core Qt6::Quick Qt6::Gui)
|