This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 648
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add helper for '-framework ApplicationServices'
- Loading branch information
Showing
4 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#import <ApplicationServices/ApplicationServices.h> | ||
|
||
int main() { | ||
} |