CMake support for GDAL / building OGR decode.
This commit is contained in:
parent
4e39bff58a
commit
99562cfde6
3 changed files with 14 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -12,6 +12,7 @@ add_subdirectory(ShapeFile)
|
|||
add_subdirectory(TGVPF)
|
||||
add_subdirectory(Terra)
|
||||
add_subdirectory(TerraFit)
|
||||
add_subdirectory(OGRDecode)
|
||||
|
||||
|
||||
|
||||
|
|
12
src/Prep/OGRDecode/CMakeLists.txt
Normal file
12
src/Prep/OGRDecode/CMakeLists.txt
Normal 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)
|
Loading…
Add table
Reference in a new issue