- create a default CMakeLists.txt with cgal_create_cmake_script,
- call "cmake ." (it will work only if CGAL_DIR is defined in the
environment),
- call "make -f Makefile" (-f Makefile is needed if an old file
"makefile" is here).
10 lines
133 B
Bash
Executable File
10 lines
133 B
Bash
Executable File
#!/bin/sh
|
|
|
|
[ -r CMakeLists.txt ] || cgal_create_cmake_script
|
|
|
|
[ -r Makefile ] || cmake .
|
|
|
|
if [ $? == 0 ]; then
|
|
make -f Makefile
|
|
fi
|