Warning, /rolisteam/rolisteam/src/libraries/qml_components/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required(VERSION 3.16) 0002 0003 set(CMAKE_AUTOMOC ON) 0004 set(CMAKE_AUTOUIC ON) 0005 set(CMAKE_AUTORCC ON) 0006 0007 find_package(Qt6 ${QT_REQUIRED_VERSION} CONFIG REQUIRED COMPONENTS Core Svg Quick Qml) 0008 0009 set(QRC_SOURCES) 0010 set(qml_compo_sources src/avatarprovider.cpp) 0011 set(qml_compo_headers include/qml_components/avatarprovider.h 0012 include/qml_components/qmlcomponents_global.h) 0013 0014 add_library(qml_components SHARED ${QRC_SOURCES} ${qml_compo_headers} ${qml_compo_sources}) 0015 set_target_properties(qml_components PROPERTIES PUBLIC_HEADER "${qml_compo_headers}") 0016 target_compile_definitions(qml_components PRIVATE QMLCOMPONENTS_LIBRARY) 0017 target_link_libraries(qml_components PUBLIC Qt6::Core Qt6::Svg Qt6::Quick Qt6::Qml PRIVATE core utils) 0018 0019 target_include_directories(qml_components PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src 0020 PUBLIC 0021 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> 0022 $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>) 0023 0024 include(install_helper) 0025 rinstallLib(qml_components libraries)