You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
377 B
17 lines
377 B
9 years ago
|
compile_cmake_base() {
|
||
|
mkdir -p build; cd build
|
||
|
cmake -DCMAKE_INSTALL_PREFIX="$prefix" -DCMAKE_BUILD_TYPE=Release $@ ..
|
||
|
make
|
||
|
}
|
||
|
|
||
|
compile_cmake() {
|
||
|
compile_cmake_base $@
|
||
|
make DESTDIR="$dir_install" install
|
||
|
}
|
||
|
|
||
|
compile_cmake_installbin() {
|
||
|
_func_file="$1"; shift
|
||
|
compile_cmake_base $@
|
||
|
install -D "$_func_file" "$dir_install/$prefix/bin/$_file"
|
||
|
}
|