Oh hell. I don't like cmake. Autoconf is hard, but cmake and scons
just make me want to walk away. And this after we got mb-system to
build with autoconf. GMT 5 switches from autoconf to cmake:
Transition from GNU Autotools to CMake
Transition from GNU Autotools to CMake
GNU autotools | CMake |
./configure | cmake <source-dir> |
make distclean | rm <build-dir> |
rm config.cache | rm CMakeCache.txt |
–prefix | CMAKEINSTALLPREFIX |
–enable-netcdf | NETCDFROOT |
–enable-gdal | GDALROOT |
–enable-pcre | PCREROOT |
–enable-matlab | MATLABROOT |
–enable-debug | CMAKEBUILDTYPE |
–enable-triangle | LICENSERESTRICTED |
–enable-US | UNITS |
–enable-flock | FLOCK |
CFLAGS | CMAKECFLAGS |
guru/gmtguru.macros | cmake/ConfigUser.cmake |