bootstrap from Linux through CMake to generate make file in a dedecated build subdir
This commit is contained in:
parent
faf00a6451
commit
67dd52fa58
23
bootstrap.linux
Executable file
23
bootstrap.linux
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright (c) 2008-2012, Gilles Caulier, <caulier dot gilles at gmail dot com>
|
||||
#
|
||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
|
||||
# We will work on command line using GNU Make
|
||||
export MAKEFILES_TYPE='Unix Makefiles'
|
||||
|
||||
if [ ! -d "build" ]; then
|
||||
mkdir build
|
||||
fi
|
||||
|
||||
cd build
|
||||
|
||||
cmake -G "$MAKEFILES_TYPE" . \
|
||||
-DCMAKE_BUILD_TYPE=debugfull \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DEXIV2_ENABLE_BUILD_SAMPLES=on \
|
||||
-DEXIV2_ENABLE_BUILD_PO=on \
|
||||
-Wno-dev \
|
||||
..
|
||||
Loading…
Reference in New Issue
Block a user