--- branches/magellan-next/include/cmake.sminc 2010/09/14 16:46:32 6654 +++ branches/magellan-next/include/cmake.sminc 2011/06/28 19:58:57 8012 @@ -96,6 +96,22 @@ echo "-DBUILD_${feature}=OFF" } +# install cmake opts +cmake_install() +{ + local feature="$1" + local option="$2" + echo "-DINSTALL_${feature}=\"${option}\"" +} + +# generic cmake opts +cmake_opt() +{ + local feature="$1" + local option="$2" + echo "-D${feature}=\"${option}\"" +} + cmake_src_prepare() { munpack ${SRCFILE} || die