1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-06 19:12:30 +01:00
ScreenPlay/ScreenPlayShader/CMakeLists.txt

36 lines
855 B
CMake
Raw Normal View History

2020-10-29 18:53:52 +01:00
project(ScreenPlayShader LANGUAGES CXX)
2020-09-10 11:40:07 +02:00
set(CMAKE_CXX_STANDARD 20)
2020-09-10 11:40:07 +02:00
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOMOC ON)
2020-09-10 11:40:07 +02:00
find_package(
Qt6
2020-10-29 18:53:52 +01:00
COMPONENTS Quick Core
REQUIRED)
2020-09-10 11:40:07 +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
target_link_libraries(${PROJECT_NAME} PRIVATE Qt6::Core Qt6::Quick Qt6::Gui)