Debian Codegraph @

demo/cmake.local

raw
1 #!/bin/sh
2
3 # Configure for a local install. Build files will be generated in the
4 # directory $toplevel/local and installation will go in the directory
5 # $toplevel/build.
6 #
7 # This is useful to be able to run demos from within the source tree
8 # without needing to specify an installation directory.
9
10 # TODO: Add -DCMAKE_BUILD_TYPE=xxxx flag
11
12 INSTALLDIR=`pwd`"/local"
13
14 mkdir -p ../build_demo
15 cd ../build_demo
16
17 cmake ../demo -DCMAKE_INSTALL_PREFIX=$INSTALLDIR
18 make
19