1
0
Fork 0

CMake support for GDAL / building OGR decode.

This commit is contained in:
James Turner 2011-10-14 18:26:59 +01:00 committed by Christian Schmitt
parent 4e39bff58a
commit 99562cfde6
3 changed files with 14 additions and 0 deletions

View file

@ -31,6 +31,7 @@ find_package(SimGear 2.5.0 REQUIRED)
find_package(GPC REQUIRED)
find_package(TIFF) # needed for SRTM
find_package(NewMat11)
find_package(GDAL) # needed for OGRDecode
check_include_file(unistd.h HAVE_UNISTD_H)
check_include_file(sys/time.h HAVE_SYS_TIME_H)

View file

@ -12,6 +12,7 @@ add_subdirectory(ShapeFile)
add_subdirectory(TGVPF)
add_subdirectory(Terra)
add_subdirectory(TerraFit)
add_subdirectory(OGRDecode)

View file

@ -0,0 +1,12 @@
if (GDAL_FOUND)
add_executable(ogr-decode ogr-decode.cxx)
target_link_libraries(ogr-decode
${GDAL_LIBRARY}
Polygon Geometry poly2tri TriangleJRS
${SIMGEAR_CORE_LIBRARIES}
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
${GPC_LIBRARY})
endif(GDAL_FOUND)