Skip to content

Commit

Permalink
add cmake build
Browse files Browse the repository at this point in the history
  • Loading branch information
darinf committed May 8, 2024
1 parent aff9ca6 commit b4aad36
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,19 @@ target_link_libraries(FirebaseFirestore PUBLIC
upb
zlibstatic)

add_library(FirebaseFunctions SHARED
Sources/FirebaseFunctions/Functions+Swift.swift
Sources/FirebaseFunctions/FunctionsErrorCode.swift
Sources/FirebaseFunctions/HTTPSCallable+Swift.swift
Sources/FirebaseFunctions/HTTPSCallableResult+Swift.swift)
target_compile_options(FirebaseFunctions PRIVATE
-cxx-interoperability-mode=default)
target_link_libraries(FirebaseFunctions PUBLIC
firebase
FirebaseCore)
target_link_libraries(FirebaseFunctions PRIVATE
firebase_rest_lib)

if(SWIFT_FIREBASE_BUILD_EXAMPLES)
FetchContent_Declare(SwiftWin32
GIT_REPOSITORY https://github.com/compnerd/swift-win32
Expand Down

0 comments on commit b4aad36

Please sign in to comment.