<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Is there any ArcGIS Runtime for Qt Quick CMake sample project available? in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/is-there-any-arcgis-runtime-for-qt-quick-cmake/m-p/1087493#M4381</link>
    <description>&lt;P&gt;We are integrating a bunch of C++ utility libraries into our ArcGIS Runtime for Qt Quick based sample viewer. Usually these C++ utility libraries are compiled using CMake. The Qt company offers some samples using Qt Quick with CMake.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;cmake_minimum_required(VERSION 3.14)

project(QPyApp LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# QtCreator supports the following variables for Android, which are identical to qmake Android variables.
# Check https://doc.qt.io/qt/deployment-android.html for more information.
# They need to be set before the find_package(...) calls below.

#if(ANDROID)
#    set(ANDROID_PACKAGE_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/android")
#    if (ANDROID_ABI STREQUAL "armeabi-v7a")
#        set(ANDROID_EXTRA_LIBS
#            ${CMAKE_CURRENT_SOURCE_DIR}/path/to/libcrypto.so
#            ${CMAKE_CURRENT_SOURCE_DIR}/path/to/libssl.so)
#    endif()
#endif()

find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Quick REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Quick REQUIRED)

set(PROJECT_SOURCES
        main.cpp
        qml.qrc
)

if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
    qt_add_executable(QPyApp
        ${PROJECT_SOURCES}
    )
else()
    if(ANDROID)
        add_library(QPyApp SHARED
            ${PROJECT_SOURCES}
        )
    else()
        add_executable(QPyApp
          ${PROJECT_SOURCES}
        )
    endif()
endif()

target_compile_definitions(QPyApp
  PRIVATE $&amp;lt;$&amp;lt;OR:$&amp;lt;CONFIG:Debug&amp;gt;,$&amp;lt;CONFIG:RelWithDebInfo&amp;gt;&amp;gt;:QT_QML_DEBUG&amp;gt;)
target_link_libraries(QPyApp
  PRIVATE Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Quick)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you be so kind and provide a sample using CMake and share it using&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-qt" target="_blank" rel="noopener"&gt;arcgis-runtime-samples-qt&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Aug 2021 15:13:52 GMT</pubDate>
    <dc:creator>Jan-Tschada</dc:creator>
    <dc:date>2021-08-10T15:13:52Z</dc:date>
    <item>
      <title>Is there any ArcGIS Runtime for Qt Quick CMake sample project available?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/is-there-any-arcgis-runtime-for-qt-quick-cmake/m-p/1087493#M4381</link>
      <description>&lt;P&gt;We are integrating a bunch of C++ utility libraries into our ArcGIS Runtime for Qt Quick based sample viewer. Usually these C++ utility libraries are compiled using CMake. The Qt company offers some samples using Qt Quick with CMake.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;cmake_minimum_required(VERSION 3.14)

project(QPyApp LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# QtCreator supports the following variables for Android, which are identical to qmake Android variables.
# Check https://doc.qt.io/qt/deployment-android.html for more information.
# They need to be set before the find_package(...) calls below.

#if(ANDROID)
#    set(ANDROID_PACKAGE_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/android")
#    if (ANDROID_ABI STREQUAL "armeabi-v7a")
#        set(ANDROID_EXTRA_LIBS
#            ${CMAKE_CURRENT_SOURCE_DIR}/path/to/libcrypto.so
#            ${CMAKE_CURRENT_SOURCE_DIR}/path/to/libssl.so)
#    endif()
#endif()

find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Quick REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Quick REQUIRED)

set(PROJECT_SOURCES
        main.cpp
        qml.qrc
)

if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
    qt_add_executable(QPyApp
        ${PROJECT_SOURCES}
    )
else()
    if(ANDROID)
        add_library(QPyApp SHARED
            ${PROJECT_SOURCES}
        )
    else()
        add_executable(QPyApp
          ${PROJECT_SOURCES}
        )
    endif()
endif()

target_compile_definitions(QPyApp
  PRIVATE $&amp;lt;$&amp;lt;OR:$&amp;lt;CONFIG:Debug&amp;gt;,$&amp;lt;CONFIG:RelWithDebInfo&amp;gt;&amp;gt;:QT_QML_DEBUG&amp;gt;)
target_link_libraries(QPyApp
  PRIVATE Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Quick)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you be so kind and provide a sample using CMake and share it using&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-qt" target="_blank" rel="noopener"&gt;arcgis-runtime-samples-qt&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 15:13:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/is-there-any-arcgis-runtime-for-qt-quick-cmake/m-p/1087493#M4381</guid>
      <dc:creator>Jan-Tschada</dc:creator>
      <dc:date>2021-08-10T15:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any ArcGIS Runtime for Qt Quick CMake sample project available?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/is-there-any-arcgis-runtime-for-qt-quick-cmake/m-p/1087511#M4382</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/78567"&gt;@Jan-Tschada&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;We do have CMake support with the ArcGIS Runtime SDK for Qt. If you create a new ArcGIS template app with Qt Creator, it will give you the option to use QMake or CMake. I've configured a 100.11.2 CMake template to share with you.&lt;/P&gt;&lt;P&gt;There's an included&amp;nbsp;CMakeLists.txt,&amp;nbsp;FindArcGISRuntime.cmake and the SDK installation includes a&amp;nbsp;ArcGISRuntime.cmake file that does the rest (included in sdk/ideintegration folder).&lt;/P&gt;&lt;P&gt;I hope this works for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 15:41:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/is-there-any-arcgis-runtime-for-qt-quick-cmake/m-p/1087511#M4382</guid>
      <dc:creator>JamesBallard1</dc:creator>
      <dc:date>2021-08-10T15:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any ArcGIS Runtime for Qt Quick CMake sample project available?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/is-there-any-arcgis-runtime-for-qt-quick-cmake/m-p/1087867#M4386</link>
      <description>&lt;P&gt;Very nice. We usually just upgrade existing projects and were not aware of this great enhancement. I just started to get my hands dirty and saw some linker warnings regarding the EsriRuntimeQtd.pdb not being linked with EsriRuntimeQtd.lib(LicenseResult.obj) and the other related *.obj's&amp;nbsp; on Windows.&lt;/P&gt;&lt;P&gt;But anyway, this CMake support helps us a lot and should make it to the official website. Otherwise we would not be able to deliver our DevOps release pipeline by integrating our CMake based vcpkg packages.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 12:49:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/is-there-any-arcgis-runtime-for-qt-quick-cmake/m-p/1087867#M4386</guid>
      <dc:creator>Jan-Tschada</dc:creator>
      <dc:date>2021-08-11T12:49:04Z</dc:date>
    </item>
  </channel>
</rss>

