Skip to content

Commit

Permalink
Add 'QtPropertyEditor' package
Browse files Browse the repository at this point in the history
  • Loading branch information
t0p4 authored and ruslo committed Dec 17, 2018
1 parent 44832c3 commit c3647ef
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
24 changes: 24 additions & 0 deletions cmake/projects/QtPropertyEditor/hunter.cmake
Original file line number Diff line number Diff line change
@@ -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)
21 changes: 21 additions & 0 deletions docs/packages/pkg/QtPropertyEditor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. spelling::

QtPropertyEditor

.. index::
single: unsorted ; QtPropertyEditor

.. _pkg.QtPropertyEditor:

QtPropertyEditor
================

- `Official <https://github.com/Energid/propertyeditor>`__
- `Hunterized <https://github.com/hunter-packages/QtPropertyEditor>`__
- `Example <https://github.com/ruslo/hunter/blob/master/examples/QtPropertyEditor/CMakeLists.txt>`__
- Added by `t0p4 <https://github.com/t0p4>`__ (`pr-1670 <https://github.com/ruslo/hunter/pull/1670>`__)

.. literalinclude:: /../examples/QtPropertyEditor/CMakeLists.txt
:language: cmake
:start-after: # DOCUMENTATION_START {
:end-before: # DOCUMENTATION_END }
18 changes: 18 additions & 0 deletions examples/QtPropertyEditor/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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 }
4 changes: 4 additions & 0 deletions examples/QtPropertyEditor/boo.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#include <propertyeditor.h>

int main() {
}

0 comments on commit c3647ef

Please sign in to comment.