[ gpsdrive ] gpsdrive compile with cmake, but without gdal?
Andreas Putzo
andreas at putzo.net
Thu Oct 4 13:28:35 AKDT 2007
Hi,
On Oct 04, Joerg Ostertag (gpsdrive Munich/Germany) wrote:
> How can I compile gpsdrive using cmake, but without having gdal installed?
By removing the gdal references in src/CMakeLists.txt.
Something like:
find_package(GDAL REQUIRED)
set(GPSDRIVE_LINK_LIBRARIES
gpsdrive
map
crypt
${GDAL_LIBRARIES}
(not tested).
If gdal support should be optional, the CmakeLists.txt file needs to
use if/else constructs afaik.
IF (GDAL_LIBRARIES)
GPSDRIVE_LINK_LIBRARIES(gpsdrive ..)
ENDIF
Cheers,
Andreas
More information about the GPSdrive
mailing list