diff --git a/cmake/configs/default.cmake b/cmake/configs/default.cmake index 842d110c1c..b3c0fd6b4c 100644 --- a/cmake/configs/default.cmake +++ b/cmake/configs/default.cmake @@ -125,6 +125,7 @@ endif() hunter_default_version(QtAndroidCMake VERSION 1.0.9) hunter_default_version(QtCMakeExtra VERSION 1.0.32) +hunter_default_version(QtPropertyEditor VERSION 2.1.3-p0) hunter_default_version(QtQmlManager VERSION 1.0.0) hunter_default_version(Qwt VERSION 6.1-p3) hunter_default_version(RapidJSON VERSION 1.1.0-66eb606-p0) diff --git a/cmake/projects/QtPropertyEditor/hunter.cmake b/cmake/projects/QtPropertyEditor/hunter.cmake new file mode 100644 index 0000000000..16a234b858 --- /dev/null +++ b/cmake/projects/QtPropertyEditor/hunter.cmake @@ -0,0 +1,24 @@ +# Copyright (c) 2016-2018, Ruslan Baratov +# All rights reserved. + +# !!! DO NOT PLACE HEADER GUARDS HERE !!! + +include(hunter_add_version) +include(hunter_cacheable) +include(hunter_download) +include(hunter_pick_scheme) + +hunter_add_version( + PACKAGE_NAME + QtPropertyEditor + VERSION + 2.1.3-p0 + URL + "https://github.com/hunter-packages/QtPropertyEditor/archive/v2.1.3-p0.tar.gz" + SHA1 + e566457c8f44cbb00d3001d659ed4e164ea57fdf +) + +hunter_pick_scheme(DEFAULT url_sha1_cmake) +hunter_cacheable(QtPropertyEditor) +hunter_download(PACKAGE_NAME QtPropertyEditor) diff --git a/docs/packages/pkg/QtPropertyEditor.rst b/docs/packages/pkg/QtPropertyEditor.rst new file mode 100644 index 0000000000..20f85c9b7e --- /dev/null +++ b/docs/packages/pkg/QtPropertyEditor.rst @@ -0,0 +1,21 @@ +.. spelling:: + + QtPropertyEditor + +.. index:: + single: unsorted ; QtPropertyEditor + +.. _pkg.QtPropertyEditor: + +QtPropertyEditor +================ + +- `Official `__ +- `Hunterized `__ +- `Example `__ +- Added by `t0p4 `__ (`pr-1670 `__) + +.. literalinclude:: /../examples/QtPropertyEditor/CMakeLists.txt + :language: cmake + :start-after: # DOCUMENTATION_START { + :end-before: # DOCUMENTATION_END } diff --git a/examples/QtPropertyEditor/CMakeLists.txt b/examples/QtPropertyEditor/CMakeLists.txt new file mode 100644 index 0000000000..f13f3daf54 --- /dev/null +++ b/examples/QtPropertyEditor/CMakeLists.txt @@ -0,0 +1,18 @@ +# Copyright (c) 2016-2018, Ruslan Baratov +# All rights reserved. + +cmake_minimum_required(VERSION 3.2) + +# Emulate HunterGate: +# * https://github.com/hunter-packages/gate +include("../common.cmake") + +project(download-QtPropertyEditor) + +# DOCUMENTATION_START { +hunter_add_package(QtPropertyEditor) +find_package(QtPropertyEditor CONFIG REQUIRED) + +add_executable(boo boo.cpp) +target_link_libraries(boo PUBLIC QtPropertyEditor::PropertyEditor) +# DOCUMENTATION_END } diff --git a/examples/QtPropertyEditor/boo.cpp b/examples/QtPropertyEditor/boo.cpp new file mode 100644 index 0000000000..5b013b30c6 --- /dev/null +++ b/examples/QtPropertyEditor/boo.cpp @@ -0,0 +1,4 @@ +#include + +int main() { +}