+function cmake_check {
+ pushd ../build >/dev/null
+ # do checks
+ if [ -e debian/$paket.build ]
+ then
+ echo "cmake is not compatible with other builds. Remove $paket.build"
+ exit 1
+ fi
+ if [ -e debian/$paket.prebuild ]
+ then
+ echo "cmake is not compatible with other builds. Remove $paket.prebuild"
+ exit 2
+ fi
+
+ cp debian/$paket.cmake CMakeLists.txt
+ echo "make" > debian/$paket.build
+ chmod 755 debian/$paket.build
+ cmake .
+ popd >/dev/null
+}