|
14 | 14 |
|
15 | 15 | # CMake file for the firebase_admob library
|
16 | 16 |
|
17 |
| -cmake_minimum_required (VERSION 3.1) |
18 |
| -set (CMAKE_CXX_STANDARD 11) |
19 |
| - |
20 |
| -include(binary_to_array) |
21 |
| -include(download_pod_headers) |
22 |
| -include(firebase_cpp_gradle) |
23 |
| - |
24 |
| -project(firebase_admob NONE) |
25 |
| -enable_language(C) |
26 |
| -enable_language(CXX) |
27 |
| - |
28 | 17 | # Common source files used by all platforms
|
29 | 18 | set(common_SRCS
|
30 | 19 | src/common/admob_common.cc
|
@@ -121,29 +110,13 @@ elseif(IOS)
|
121 | 110 | APPEND_STRING PROPERTY
|
122 | 111 | COMPILE_FLAGS "-fobjc-arc")
|
123 | 112 |
|
124 |
| - # Setup the target for getting the Firebase iOS SDK headers through Cocoapods. |
125 |
| - set(pod_target_name "download_admob_pod_headers") |
126 |
| - set(pods_dir "${PROJECT_BINARY_DIR}/Pods") |
127 |
| - set(pod_list "") |
128 |
| - list(APPEND pod_list "'Firebase/AdMob', '6.10.0'") |
129 |
| - |
130 |
| - setup_pod_headers_target("${pod_target_name}" "${pods_dir}" "${pod_list}") |
131 |
| - |
132 |
| - # Add the Cocoapod headers to the include directories |
133 |
| - set(base_header_dir "${pods_dir}/Pods/Headers/Public") |
134 |
| - target_include_directories(firebase_admob |
135 |
| - PRIVATE |
136 |
| - ${base_header_dir}/Google-Mobile-Ads-SDK |
| 113 | + setup_pod_headers( |
| 114 | + firebase_admob |
| 115 | + POD_NAMES |
| 116 | + Google-Mobile-Ads-SDK |
137 | 117 | )
|
138 |
| - string(CONCAT google_mobile_ads_framework_path |
139 |
| - "${pods_dir}/Pods/Google-Mobile-Ads-SDK/" |
140 |
| - "Frameworks/GoogleMobileAdsFramework-Current/GoogleMobileAds.framework") |
| 118 | + |
141 | 119 | # AdMob expects the header files to be in a subfolder, so set up a symlink to
|
142 | 120 | # accomplish that.
|
143 |
| - symlink_framework_headers(firebase_admob ${pod_target_name} |
144 |
| - ${google_mobile_ads_framework_path} GoogleMobileAds |
145 |
| - ) |
146 |
| - |
147 |
| - # Add a dependency to downloading the headers onto admob. |
148 |
| - add_dependencies(firebase_admob ${pod_target_name}) |
| 121 | + symlink_pod_headers(firebase_admob Google-Mobile-Ads-SDK GoogleMobileAds) |
149 | 122 | endif()
|
0 commit comments