Skip to content

Commit bc72768

Browse files
markchandlera-maurice
authored andcommitted
Firebase Cpp CMake: Added virtual folders for visual studio
PiperOrigin-RevId: 268232024
1 parent 7976926 commit bc72768

File tree

14 files changed

+28
-3
lines changed

14 files changed

+28
-3
lines changed

.gitallowed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# This "secret" is shared in public documentation, and is used for documentation
22
# purposes only.
3-
the API key
3+
AIzaSyDdVgKwhZl0sTTTLZ7iTmt1r3N2cJLnaDk

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
cmake_minimum_required (VERSION 3.1)
1818
set (CMAKE_CXX_STANDARD 11)
1919

20+
# Turn on virtual folders for visual studio
21+
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
22+
2023
# Different options to enable/disable each library being included during
2124
# configuration.
2225
option(FIREBASE_INCLUDE_ADMOB "Include the AdMob library." ON)

admob/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ add_library(firebase_admob STATIC
8383
${common_SRCS}
8484
${admob_platform_SRCS})
8585

86+
set_property(TARGET firebase_admob PROPERTY FOLDER "Firebase Cpp")
87+
8688
# Set up the dependency on Firebase App.
8789
target_link_libraries(firebase_admob
8890
firebase_app)

analytics/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ add_library(firebase_analytics STATIC
9595
${common_SRCS}
9696
${analytics_platform_SRCS})
9797

98+
set_property(TARGET firebase_analytics PROPERTY FOLDER "Firebase Cpp")
99+
98100
# Set up the dependency on Firebase App.
99101
target_link_libraries(firebase_analytics
100102
firebase_app)

app/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ add_library(firebase_app STATIC
291291
memory/unique_ptr.h
292292
memory/shared_ptr.h)
293293

294+
set_property(TARGET firebase_app PROPERTY FOLDER "Firebase Cpp")
295+
294296
# Disable exceptions in std
295297
if (MSVC)
296298
target_compile_options(firebase_app PUBLIC /EHs-c-)

app/src/include/firebase/app.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class AppOptions {
180180

181181
/// API key used to authenticate requests from your app.
182182
///
183-
/// For example, "the API key" used to identify
183+
/// For example, "AIzaSyDdVgKwhZl0sTTTLZ7iTmt1r3N2cJLnaDk" used to identify
184184
/// your app to Google servers.
185185
///
186186
/// This only needs to be specified if your application does not include
@@ -198,7 +198,7 @@ class AppOptions {
198198
/// <csproperty name="ApiKey">
199199
/// Gets or sets the API key used to authenticate requests from your app.
200200
///
201-
/// For example, \"the API key\" used to identify
201+
/// For example, \"AIzaSyDdVgKwhZl0sTTTLZ7iTmt1r3N2cJLnaDk\" used to identify
202202
/// your app to Google servers.
203203
///
204204
/// This only needs to be specified if your application does not include

auth/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ add_library(firebase_auth STATIC
161161
${common_SRCS}
162162
${auth_platform_SRCS})
163163

164+
set_property(TARGET firebase_auth PROPERTY FOLDER "Firebase Cpp")
165+
164166
# Set up the dependency on Firebase App.
165167
target_link_libraries(firebase_auth
166168
PUBLIC

database/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ add_library(firebase_database STATIC
164164
${common_SRCS}
165165
${database_platform_SRCS})
166166

167+
set_property(TARGET firebase_database PROPERTY FOLDER "Firebase Cpp")
168+
167169
# Set up the dependency on Firebase App.
168170
target_link_libraries(firebase_database
169171
PUBLIC

dynamic_links/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ add_library(firebase_dynamic_links STATIC
5656
${common_SRCS}
5757
${dynamic_links_platform_SRCS})
5858

59+
set_property(TARGET firebase_dynamic_links PROPERTY FOLDER "Firebase Cpp")
60+
5961
# Set up the dependency on Firebase App.
6062
target_link_libraries(firebase_dynamic_links
6163
firebase_app)

functions/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ add_library(firebase_functions STATIC
6969
${common_SRCS}
7070
${functions_platform_SRCS})
7171

72+
set_property(TARGET firebase_functions PROPERTY FOLDER "Firebase Cpp")
73+
7274
# Set up the dependency on Firebase App.
7375
target_link_libraries(firebase_functions
7476
PUBLIC

0 commit comments

Comments
 (0)