direwolf/external/geotranz/CMakeLists.txt
Davide Gerhard 8cd1f87ef6
cmake: windows build fixes
works with cygwin and x86_64-w64-mingw32-gcc/x86_64-w64-mingw32-g++
from the package installer of cygwin.
To use that add the following lines to .bash_profile

export CC=x86_64-w64-mingw32-gcc
export CXX=x86_64-w64-mingw32-g++

you also need cmake from cygwin
2019-11-09 08:31:35 +01:00

18 lines
255 B
CMake

# UTM, USNG, MGRS conversions
set(GEOTRANZ_LIBRARIES geotranz CACHE INTERNAL "geotranz")
list(APPEND geotranz_SOURCES
error_string.c
mgrs.c
polarst.c
tranmerc.c
ups.c
usng.c
utm.c
)
add_library(geotranz STATIC
${geotranz_SOURCES}
)