Commit 226acd7c authored by Antonio Cervone's avatar Antonio Cervone
Browse files

bugfix in bessel.hpp installation for cmake

parent 5a65a540
......@@ -24,4 +24,4 @@ OneDFSIFunctionSolverDefined.hpp
RossEthierSteinmanDec.hpp
RossEthierSteinmanInc.hpp
Womersley.hpp DESTINATION include/life/lifefunctions)
install ( FILES bessel.hpp DESTINATION include/life/lifefunctions/bessel)
install ( FILES bessel/bessel.hpp DESTINATION include/life/lifefunctions/bessel)
......@@ -2,19 +2,19 @@
cd life
for DIR in life*; do
echo $DIR
cd $DIR
mv -f CMakeLists.txt CMakeLists.txt.old
CPPFILES=$(find . -name \*.cpp | sed 's,./,,')
HPPFILES=$(ls *.hpp)
cat > CMakeLists.txt << eof
echo $DIR
cd $DIR
mv -f CMakeLists.txt CMakeLists.txt.old
CPPFILES=$(find . -name \*.cpp | sed 's,./,,')
HPPFILES=$(ls *.hpp)
cat > CMakeLists.txt << eof
add_library ( $DIR $CPPFILES )
install ( TARGETS $DIR DESTINATION lib )
install ( FILES $HPPFILES DESTINATION include/life/$DIR)
eof
if [ $DIR == lifefunctions ]; then
cat >> CMakeLists.txt << eof
install ( FILES bessel.hpp DESTINATION include/life/$DIR/bessel)
install ( FILES bessel/bessel.hpp DESTINATION include/life/$DIR/bessel)
eof
fi
cd ..
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment