arfon --
Not sure these are up-to-date but there are templates for various package types at:
https://slackbuilds.org/templates/
Anyway, the cmake-template.SlackBuild suggests trying ccmake:
Code:
<<snip>>
# Your application will probably need different cmake flags; these are only
# examples. You might use 'ccmake' to see the available flags...
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
-DCMAKE_BUILD_TYPE=Release ..
make
make install/strip DESTDIR=$PKG
cd ..
<<snip>>
HTH
-- kjh
oops. too slow ! What montagdude said
![Smilie](https://www.linuxquestions.org/questions/images/smilies/smile.gif)