Created
July 2, 2013 18:42
-
-
Save vittorioromeo/5911924 to your computer and use it in GitHub Desktop.
Builds and installs both debug and release CMake configurations in all subfolders non-recursively
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Password, please!" | |
sudo echo "Thanks!" | |
for dir in ./*; do | |
if [[ -d "$dir" ]]; then | |
( | |
cd "$dir" | |
mkdir "buildAll" | |
cd "buildAll" | |
mkdir "debug" | |
mkdir "release" | |
(cd "debug"; cmake ../../ -DCMAKE_BUILD_TYPE=DEBUG && make -j8 && sudo make install -j8) | |
(cd "release"; cmake ../../ -DCMAKE_BUILD_TYPE=RELEASE && make -j8 && sudo make install -j8) | |
) | |
fi | |
done | |
echo "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment