Add cmake install targets
This commit is contained in:
parent
566538e083
commit
89ca2ae1e4
20 changed files with 146 additions and 12 deletions
|
@ -37,7 +37,7 @@ check_include_file(unistd.h HAVE_UNISTD_H)
|
|||
check_include_file(sys/time.h HAVE_SYS_TIME_H)
|
||||
check_include_file(windows.h HAVE_WINDOWS_H)
|
||||
|
||||
set(PKGDATADIR ${PREFIX}/share)
|
||||
set(PKGDATADIR ${CMAKE_INSTALL_PREFIX}/share/TerraGear)
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||
set(WARNING_FLAGS -Wall)
|
||||
|
|
|
@ -29,3 +29,4 @@ target_link_libraries(genapts
|
|||
${GPC_LIBRARY}
|
||||
${NEWMAT_LIBRARY})
|
||||
|
||||
install(TARGETS genapts RUNTIME DESTINATION bin)
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
include_directories(${PROJECT_SOURCE_DIR}/src/Lib)
|
||||
include_directories(${PROJECT_SOURCE_DIR}/src/BuildTiles)
|
||||
|
||||
add_subdirectory(Osgb36)
|
||||
add_subdirectory(Osgb36)
|
||||
#add_subdirectory(Parallel)
|
||||
add_subdirectory(Triangulate)
|
||||
add_subdirectory(Clipper)
|
||||
add_subdirectory(GenOutput)
|
||||
|
|
|
@ -11,3 +11,5 @@ target_link_libraries(testclipper
|
|||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
${GPC_LIBRARY})
|
||||
|
||||
INSTALL(FILES default_priorities.txt DESTINATION ${PKGDATADIR} )
|
|
@ -18,6 +18,9 @@ target_link_libraries(fgfs-construct
|
|||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
${GPC_LIBRARY})
|
||||
|
||||
install(TARGETS fgfs-construct RUNTIME DESTINATION bin)
|
||||
INSTALL(FILES usgsmap.txt DESTINATION ${PKGDATADIR} )
|
||||
|
||||
|
||||
add_executable(fgfs-master
|
||||
master.cxx)
|
||||
|
@ -26,3 +29,5 @@ target_link_libraries(fgfs-master
|
|||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
)
|
||||
|
||||
install(TARGETS fgfs-master RUNTIME DESTINATION bin)
|
||||
|
|
22
src/BuildTiles/Parallel/CMakeLists.txt
Normal file
22
src/BuildTiles/Parallel/CMakeLists.txt
Normal file
|
@ -0,0 +1,22 @@
|
|||
|
||||
|
||||
add_executable(fgfs-tools-server
|
||||
server.cxx)
|
||||
|
||||
target_link_libraries(fgfs-tools-server
|
||||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
)
|
||||
|
||||
install(TARGETS fgfs-tools-server RUNTIME DESTINATION bin)
|
||||
|
||||
|
||||
add_executable(fgfs-tools-client
|
||||
client.cxx)
|
||||
|
||||
target_link_libraries(fgfs-tools-client
|
||||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
)
|
||||
|
||||
install(TARGETS fgfs-tools-client RUNTIME DESTINATION bin)
|
|
@ -3,4 +3,5 @@
|
|||
add_subdirectory(Prep)
|
||||
add_subdirectory(Lib)
|
||||
add_subdirectory(Airports)
|
||||
add_subdirectory(BuildTiles)
|
||||
add_subdirectory(BuildTiles)
|
||||
add_subdirectory(Utils)
|
||||
|
|
|
@ -5,15 +5,15 @@ include_directories(${PROJECT_SOURCE_DIR}/src/Lib)
|
|||
# seems unfortunate that lib depends on other dirs
|
||||
#include_directories(${PROJECT_SOURCE_DIR}/src/BuildTiles)
|
||||
|
||||
add_subdirectory(GDALChop)
|
||||
add_subdirectory(GSHHS)
|
||||
add_subdirectory(DemChop)
|
||||
add_subdirectory(DemInfo)
|
||||
#add_subdirectory(DemRaw2ascii)
|
||||
add_subdirectory(E00Lines)
|
||||
#add_subdirectory(Photo)
|
||||
add_subdirectory(ShapeFile)
|
||||
add_subdirectory(TGVPF)
|
||||
add_subdirectory(Terra)
|
||||
add_subdirectory(TerraFit)
|
||||
add_subdirectory(OGRDecode)
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -6,13 +6,17 @@ target_link_libraries(demchop
|
|||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
|
||||
|
||||
install(TARGETS demchop RUNTIME DESTINATION bin)
|
||||
|
||||
add_executable(hgtchop hgtchop.cxx point2d.hxx)
|
||||
|
||||
target_link_libraries(hgtchop
|
||||
HGT
|
||||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
|
||||
|
||||
|
||||
install(TARGETS hgtchop RUNTIME DESTINATION bin)
|
||||
|
||||
if(TIFF_FOUND)
|
||||
add_executable(srtmchop srtmchop.cxx point2d.hxx)
|
||||
target_link_libraries(srtmchop
|
||||
|
@ -21,6 +25,7 @@ target_link_libraries(srtmchop
|
|||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
|
||||
|
||||
install(TARGETS srtmchop RUNTIME DESTINATION bin)
|
||||
endif(TIFF_FOUND)
|
||||
|
||||
add_executable(fillvoids fillvoids.cxx)
|
||||
|
@ -29,9 +34,12 @@ target_link_libraries(fillvoids
|
|||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
|
||||
|
||||
install(TARGETS fillvoids RUNTIME DESTINATION bin)
|
||||
|
||||
add_executable(testassem testassem.cxx)
|
||||
target_link_libraries(testassem
|
||||
Array
|
||||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
|
||||
|
||||
|
||||
install(TARGETS testassem RUNTIME DESTINATION bin)
|
||||
|
|
9
src/Prep/DemInfo/CMakeLists.txt
Normal file
9
src/Prep/DemInfo/CMakeLists.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
add_executable(deminfo deminfo.cxx)
|
||||
|
||||
target_link_libraries(deminfo
|
||||
DEM
|
||||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
|
||||
|
||||
install(TARGETS deminfo RUNTIME DESTINATION bin)
|
11
src/Prep/DemRaw2ascii/CMakeLists.txt
Normal file
11
src/Prep/DemRaw2ascii/CMakeLists.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
add_executable(raw2ascii
|
||||
main.cxx rawdem.c rawdem.h)
|
||||
|
||||
target_link_libraries(raw2ascii
|
||||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
)
|
||||
|
||||
install(TARGETS raw2ascii RUNTIME DESTINATION bin)
|
||||
|
13
src/Prep/GDALChop/CMakeLists.txt
Normal file
13
src/Prep/GDALChop/CMakeLists.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
|
||||
if (GDAL_FOUND)
|
||||
|
||||
include_directories(${GDAL_INCLUDE_DIR})
|
||||
add_executable(gdalchop gdalchop.cxx)
|
||||
|
||||
target_link_libraries(gdalchop
|
||||
${GDAL_LIBRARY}
|
||||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
)
|
||||
install(TARGETS gdalchop RUNTIME DESTINATION bin)
|
||||
endif(GDAL_FOUND)
|
|
@ -9,6 +9,8 @@ target_link_libraries(gshhs
|
|||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
${GPC_LIBRARY})
|
||||
|
||||
install(TARGETS gshhs RUNTIME DESTINATION bin)
|
||||
|
||||
add_executable(gshhs_debug
|
||||
debug.cxx)
|
||||
|
@ -19,3 +21,4 @@ target_link_libraries(gshhs_debug
|
|||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
${GPC_LIBRARY})
|
||||
|
||||
install(TARGETS gshhs_debug RUNTIME DESTINATION bin)
|
||||
|
|
|
@ -11,4 +11,5 @@ target_link_libraries(ogr-decode
|
|||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
${GPC_LIBRARY})
|
||||
|
||||
install(TARGETS ogr-decode RUNTIME DESTINATION bin)
|
||||
endif(GDAL_FOUND)
|
||||
|
|
32
src/Prep/Photo/CMakeLists.txt
Normal file
32
src/Prep/Photo/CMakeLists.txt
Normal file
|
@ -0,0 +1,32 @@
|
|||
|
||||
add_executable(photo
|
||||
photo.cxx)
|
||||
|
||||
target_link_libraries(photo
|
||||
Polygon Geometry Array Output poly2tri TriangleJRS
|
||||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
${GPC_LIBRARY})
|
||||
|
||||
install(TARGETS photo RUNTIME DESTINATION bin)
|
||||
|
||||
add_executable(wgs84offset
|
||||
wgs84offset.cxx)
|
||||
|
||||
target_link_libraries(wgs84offset
|
||||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
)
|
||||
|
||||
install(TARGETS wgs84offset RUNTIME DESTINATION bin)
|
||||
|
||||
|
||||
add_executable(findcorners
|
||||
findcorners.cxx)
|
||||
|
||||
target_link_libraries(findcorners
|
||||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
)
|
||||
|
||||
install(TARGETS findcorners RUNTIME DESTINATION bin)
|
|
@ -7,6 +7,8 @@ target_link_libraries(shape-decode
|
|||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
${GPC_LIBRARY})
|
||||
|
||||
install(TARGETS shape-decode RUNTIME DESTINATION bin)
|
||||
|
||||
add_executable(noaa-decode noaa-decode.cxx)
|
||||
|
||||
|
@ -16,3 +18,4 @@ target_link_libraries(noaa-decode
|
|||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
${GPC_LIBRARY})
|
||||
|
||||
install(TARGETS noaa-decode RUNTIME DESTINATION bin)
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
|
||||
|
||||
add_library(Terra STATIC
|
||||
Array.h Geom.h
|
||||
GreedyInsert.cc GreedyInsert.h
|
||||
Heap.cc Heap.h
|
||||
Map.cc Map.h
|
||||
Map.cc Map.h
|
||||
Mask.cc Mask.h
|
||||
Quadedge.cc Quadedge.h
|
||||
Subdivision.cc Subdivision.h
|
||||
|
|
|
@ -6,3 +6,4 @@ target_link_libraries(terrafit
|
|||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
|
||||
|
||||
install(TARGETS terrafit RUNTIME DESTINATION bin)
|
||||
|
|
8
src/Utils/CMakeLists.txt
Normal file
8
src/Utils/CMakeLists.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
|
||||
include_directories(${PROJECT_SOURCE_DIR}/src/Lib)
|
||||
|
||||
# seems unfortunate that lib depends on other dirs
|
||||
#include_directories(${PROJECT_SOURCE_DIR}/src/BuildTiles)
|
||||
|
||||
#add_subdirectory(poly2ogr)
|
15
src/Utils/poly2ogr/CMakeLists.txt
Normal file
15
src/Utils/poly2ogr/CMakeLists.txt
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
if (GDAL_FOUND)
|
||||
|
||||
include_directories(${GDAL_INCLUDE_DIR})
|
||||
add_executable(poly2ogr poly2ogr.cxx)
|
||||
|
||||
target_link_libraries(poly2ogr
|
||||
${GDAL_LIBRARY}
|
||||
Polygon
|
||||
${SIMGEAR_CORE_LIBRARIES}
|
||||
${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
|
||||
)
|
||||
|
||||
install(TARGETS poly2ogr RUNTIME DESTINATION bin)
|
||||
endif(GDAL_FOUND)
|
Loading…
Add table
Reference in a new issue