From 3d79a2ec869cf01fe553e0e9f99a54d959d06cbf Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Tue, 11 Oct 2016 21:05:59 +0000 Subject: [PATCH] CMake. Little script to regenerate CMake/Xcode files (can't trust CMake to do anything correctly without a script). --- contrib/cmake/macosx/generate | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 contrib/cmake/macosx/generate diff --git a/contrib/cmake/macosx/generate b/contrib/cmake/macosx/generate new file mode 100755 index 00000000..f68b505d --- /dev/null +++ b/contrib/cmake/macosx/generate @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +## +# regenerate Xcode environment +## +if [ -e src/actions.cpp -o -e ../src/actions.cpp ]; then + if [ ! -e build ]; then mkdir build ; cd build ; fi + if [ -e ../src/actions.cpp ]; then + cmake .. -G Xcode -DEXIV2_ENABLE_NLS=OFF -DCMAKE_BUILD_TYPE=Debug + fi + if [ ! -e generate ]; then + ln -s ../contrib/cmake/macosx/generate generate + fi +else + echo "*** you must be in exiv2dir or exiv2dir/build ***" >2 +fi + +# That's all Folks! +##