From 2810a09c582b09104c04f16e5a3086cbe3e79d23 Mon Sep 17 00:00:00 2001 From: Gil Date: Tue, 26 Jun 2018 11:58:10 -0700 Subject: Prepare for installed sub-projects (#1459) * Ignore vim backup files * Prepare for installed subprojects This adds FIREBASE_BINARY_DIR to point to the out-of-source build directory (which previously was passed around as FIREBASE_INSTALL_DIR). This repurposes FIREBASE_INSTALL_DIR to point to ${FIREBASE_BINARY_DIR}/opt, and installation root for subprojects that have an install step. * Allow download directory to be specified --- CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 04d4c99..ca5c322 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,7 +36,14 @@ endif(APPLE) list(INSERT CMAKE_MODULE_PATH 0 ${PROJECT_SOURCE_DIR}/cmake) -set(FIREBASE_INSTALL_DIR ${PROJECT_BINARY_DIR}) +set(FIREBASE_BINARY_DIR ${PROJECT_BINARY_DIR}) +set(FIREBASE_INSTALL_DIR ${PROJECT_BINARY_DIR}/opt) + +set( + FIREBASE_DOWNLOAD_DIR + ${PROJECT_BINARY_DIR}/downloads + CACHE PATH "Where to store downloaded files" +) enable_testing() -- cgit v1.2.3