From 13da48d8a4fcdfe288fa15c788c59e7f54edf42c Mon Sep 17 00:00:00 2001 From: Gil Date: Mon, 1 Jan 2018 21:00:32 -0800 Subject: Build FirebaseCore from CMake (#594) * Don't bother specifying a download directory to CMake ExternalProject * Teach CMake to build pure Xcode projects as dependencies This allows downstream code (like log_apple.mm) to consume this for testing within the CMake build without requiring a CMake-native build for these components. This makes integrating these components into the cmake build essentially free from the point of view of the consumed component. * Get the CMake build semi-working on Linux again Many prebuilt versions of cmake on Linux lack the ability to download over https so use git to get googletest. Don't attempt to build FirebaseCore on Linux; there's no xcodebuild. Note the build is still ultimately broken because we don't yet have an alternative to arc4random on Linux but at least this is no more broken than it was before. --- Firestore/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Firestore/CMakeLists.txt') diff --git a/Firestore/CMakeLists.txt b/Firestore/CMakeLists.txt index 906b6e4..ba9998d 100644 --- a/Firestore/CMakeLists.txt +++ b/Firestore/CMakeLists.txt @@ -24,6 +24,10 @@ include(utils) find_package(GTest REQUIRED) find_package(LevelDB REQUIRED) +if(APPLE) + find_package(FirebaseCore REQUIRED) +endif() + # We use C++11 set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) -- cgit v1.2.3