Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
Add helper for '-framework ApplicationServices'
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Feb 20, 2019
1 parent d0e75ed commit 6025f42
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/find/Findapplicationservices.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) 2017-2019, Ruslan Baratov
# All rights reserved.

include(hunter_find_helper_framework)
hunter_find_helper_framework(FRAMEWORK "ApplicationServices")
27 changes: 27 additions & 0 deletions docs/packages/pkg/applicationservices.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.. spelling::

applicationservices

.. index:: system_library_finder ; applicationservices

.. _pkg.applicationservices:

applicationservices
===================

.. note::

This is a helper package. There is no corresponding package in Hunter to be included by ``hunter_add_package(...)``

.. code-block:: cmake
find_package(applicationservices REQUIRED)
target_link_libraries(... applicationservices::applicationservices)
Same as

.. code-block:: cmake
target_link_libraries(... "-framework ApplicationServices")
- https://developer.apple.com/documentation/applicationservices?language=objc
15 changes: 15 additions & 0 deletions examples/applicationservices/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (c) 2016-2019, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.2)

# Emulate HunterGate:
# * https://github.com/hunter-packages/gate
include("../common.cmake")

project(download-applicationservices)

find_package(applicationservices REQUIRED)

add_executable(foo foo.mm)
target_link_libraries(foo PUBLIC applicationservices::applicationservices)
4 changes: 4 additions & 0 deletions examples/applicationservices/foo.mm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#import <ApplicationServices/ApplicationServices.h>

int main() {
}

0 comments on commit 6025f42

Please sign in to comment.