This commit is contained in:
张壹 2021-08-28 11:34:46 +08:00
commit b05e63e669
2 changed files with 17 additions and 1 deletions

16
config.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
cmd=${1}
package=tesseroids
address=/opt
if [[ ${cmd} == "configure" && ! -d "build/" ]]; then
mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=${address}/stow/${package} -DCMAKE_BUILD_TYPE=Release
elif [[ ${cmd} == "configure" ]]; then
cd build && rm -rf * && cmake .. -DCMAKE_INSTALL_PREFIX=${address}/stow/${package} -DCMAKE_BUILD_TYPE=Release
elif [[ ${cmd} == "build" ]]; then
cd build && make
elif [[ ${cmd} == "install" ]]; then
cd build && sudo make install
sudo stow --dir=${address}/stow --target=${address} ${package}
fi

View File

@ -60,5 +60,5 @@ endif()
#
file(GLOB LIBTESS_HEAD *.h)
# /opt/include/tess
# include/tess
install(FILES ${LIBTESS_HEAD} DESTINATION include/tess)