From 1db8d75849def01c145e1dd5112c837dcb81d399 Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Thu, 27 Sep 2018 13:50:11 +0900 Subject: [PATCH] README: Document how to build using cmake Reviewd-By: Hermet Park Change-Id: I25056d78d5b540fe0568825a617979b6439f508b --- README.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.txt b/README.txt index 0dfc8a7..e028653 100644 --- a/README.txt +++ b/README.txt @@ -18,3 +18,17 @@ RUN TESTS 1. meson configure -Dtest=true 2. ninja 3. invoke testsuites as ./build/test/animationTestSuite and ./build/test/vectorTestSuite + +BUILD WITH CMAKE +================ +liblottie-player can also be built using the cmake build system. + +1. install cmake. (Follow instructions at https://cmake.org/download/) +2. create a new build/ directory +3. invoke cmake from inside build/ as cmake -DLIB_INSTALL_DIR=lib .. +4. invoke make +5. invoke sudo make install to install, if desired. + +To install to a different prefix, specify it when running cmake, e.g.: + cmake -DCMAKE_INSTALL_PREFIX:PATH=~/Build -DLIB_INSTALL_DIR=~/Build/lib .. + -- 2.7.4