2019-03-09 05:39:22 +08:00
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
project(geotrans CXX)
|
|
|
|
|
|
|
|
file(GLOB_RECURSE DTCC_CPP CCS/src/dtcc/*.cpp)
|
|
|
|
include_directories(
|
2021-01-06 04:05:15 +08:00
|
|
|
CCS/src/CoordinateConversion
|
2019-03-09 05:39:22 +08:00
|
|
|
CCS/src/dtcc
|
|
|
|
CCS/src/dtcc/CoordinateSystemParameters
|
|
|
|
CCS/src/dtcc/CoordinateSystems
|
|
|
|
CCS/src/dtcc/CoordinateSystems/albers
|
|
|
|
CCS/src/dtcc/CoordinateSystems/azeq
|
|
|
|
CCS/src/dtcc/CoordinateSystems/bng
|
2021-01-06 04:05:15 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/bonne
|
|
|
|
CCS/src/dtcc/CoordinateSystems/cassini
|
2019-03-09 05:39:22 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/cyleqa
|
2021-01-06 04:05:15 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/datum
|
|
|
|
CCS/src/dtcc/CoordinateSystems/eckert4
|
2019-03-09 05:39:22 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/eckert6
|
2021-01-06 04:05:15 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/ellipse
|
|
|
|
CCS/src/dtcc/CoordinateSystems/eqdcyl
|
2019-03-09 05:39:22 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/gars
|
2021-01-06 04:05:15 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/geocent
|
|
|
|
CCS/src/dtcc/CoordinateSystems/georef
|
2019-03-09 05:39:22 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/gnomonic
|
2021-01-06 04:05:15 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/grinten
|
|
|
|
CCS/src/dtcc/CoordinateSystems/lambert
|
2019-03-09 05:39:22 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/loccart
|
2021-01-06 04:05:15 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/locspher
|
|
|
|
CCS/src/dtcc/CoordinateSystems/mercator
|
|
|
|
CCS/src/dtcc/CoordinateSystems/mgrs
|
2019-03-09 05:39:22 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/miller
|
2021-01-06 04:05:15 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/misc
|
|
|
|
CCS/src/dtcc/CoordinateSystems/mollweid
|
2019-03-09 05:39:22 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/neys
|
2021-01-06 04:05:15 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/nzmg
|
|
|
|
CCS/src/dtcc/CoordinateSystems/omerc
|
2019-03-09 05:39:22 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/orthogr
|
2021-01-06 04:05:15 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/polarst
|
|
|
|
CCS/src/dtcc/CoordinateSystems/polycon
|
2019-03-09 05:39:22 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/sinusoid
|
2021-01-06 04:05:15 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/spherical
|
|
|
|
CCS/src/dtcc/CoordinateSystems/stereogr
|
|
|
|
CCS/src/dtcc/CoordinateSystems/threads
|
2019-03-09 05:39:22 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/tranmerc
|
2021-01-06 04:05:15 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/trcyleqa
|
|
|
|
CCS/src/dtcc/CoordinateSystems/ups
|
2019-03-09 05:39:22 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/usng
|
2021-01-06 04:05:15 +08:00
|
|
|
CCS/src/dtcc/CoordinateSystems/utm
|
|
|
|
CCS/src/dtcc/CoordinateSystems/webmerc
|
2019-03-09 05:39:22 +08:00
|
|
|
CCS/src/dtcc/CoordinateTuples
|
2021-01-06 04:05:15 +08:00
|
|
|
CCS/src/dtcc/Enumerations
|
|
|
|
CCS/src/dtcc/Exception
|
2019-03-09 05:39:22 +08:00
|
|
|
)
|
|
|
|
set(DTCC_INCLUDES
|
2021-01-06 04:05:15 +08:00
|
|
|
include/CoordinateConversion
|
2019-03-09 05:39:22 +08:00
|
|
|
include/dtcc/
|
|
|
|
include/dtcc/CoordinateSystemParameters
|
|
|
|
include/dtcc/CoordinateSystems
|
|
|
|
include/dtcc/CoordinateSystems/albers
|
|
|
|
include/dtcc/CoordinateSystems/azeq
|
|
|
|
include/dtcc/CoordinateSystems/bng
|
2021-01-06 04:05:15 +08:00
|
|
|
include/dtcc/CoordinateSystems/bonne
|
|
|
|
include/dtcc/CoordinateSystems/cassini
|
2019-03-09 05:39:22 +08:00
|
|
|
include/dtcc/CoordinateSystems/cyleqa
|
2021-01-06 04:05:15 +08:00
|
|
|
include/dtcc/CoordinateSystems/datum
|
|
|
|
include/dtcc/CoordinateSystems/eckert4
|
2019-03-09 05:39:22 +08:00
|
|
|
include/dtcc/CoordinateSystems/eckert6
|
2021-01-06 04:05:15 +08:00
|
|
|
include/dtcc/CoordinateSystems/ellipse
|
|
|
|
include/dtcc/CoordinateSystems/eqdcyl
|
2019-03-09 05:39:22 +08:00
|
|
|
include/dtcc/CoordinateSystems/gars
|
2021-01-06 04:05:15 +08:00
|
|
|
include/dtcc/CoordinateSystems/geocent
|
|
|
|
include/dtcc/CoordinateSystems/georef
|
2019-03-09 05:39:22 +08:00
|
|
|
include/dtcc/CoordinateSystems/gnomonic
|
2021-01-06 04:05:15 +08:00
|
|
|
include/dtcc/CoordinateSystems/grinten
|
|
|
|
include/dtcc/CoordinateSystems/lambert
|
2019-03-09 05:39:22 +08:00
|
|
|
include/dtcc/CoordinateSystems/loccart
|
2021-01-06 04:05:15 +08:00
|
|
|
include/dtcc/CoordinateSystems/locspher
|
|
|
|
include/dtcc/CoordinateSystems/mercator
|
|
|
|
include/dtcc/CoordinateSystems/mgrs
|
2019-03-09 05:39:22 +08:00
|
|
|
include/dtcc/CoordinateSystems/miller
|
2021-01-06 04:05:15 +08:00
|
|
|
include/dtcc/CoordinateSystems/misc
|
|
|
|
include/dtcc/CoordinateSystems/mollweid
|
2019-03-09 05:39:22 +08:00
|
|
|
include/dtcc/CoordinateSystems/neys
|
2021-01-06 04:05:15 +08:00
|
|
|
include/dtcc/CoordinateSystems/nzmg
|
|
|
|
include/dtcc/CoordinateSystems/omerc
|
2019-03-09 05:39:22 +08:00
|
|
|
include/dtcc/CoordinateSystems/orthogr
|
2021-01-06 04:05:15 +08:00
|
|
|
include/dtcc/CoordinateSystems/polarst
|
|
|
|
include/dtcc/CoordinateSystems/polycon
|
2019-03-09 05:39:22 +08:00
|
|
|
include/dtcc/CoordinateSystems/sinusoid
|
2021-01-06 04:05:15 +08:00
|
|
|
include/dtcc/CoordinateSystems/spherical
|
|
|
|
include/dtcc/CoordinateSystems/stereogr
|
|
|
|
include/dtcc/CoordinateSystems/threads
|
2019-03-09 05:39:22 +08:00
|
|
|
include/dtcc/CoordinateSystems/tranmerc
|
2021-01-06 04:05:15 +08:00
|
|
|
include/dtcc/CoordinateSystems/trcyleqa
|
|
|
|
include/dtcc/CoordinateSystems/ups
|
2019-03-09 05:39:22 +08:00
|
|
|
include/dtcc/CoordinateSystems/usng
|
2021-01-06 04:05:15 +08:00
|
|
|
include/dtcc/CoordinateSystems/utm
|
|
|
|
include/dtcc/CoordinateSystems/webmerc
|
2019-03-09 05:39:22 +08:00
|
|
|
include/dtcc/CoordinateTuples
|
2021-01-06 04:05:15 +08:00
|
|
|
include/dtcc/Enumerations
|
|
|
|
include/dtcc/Exception
|
2019-03-09 05:39:22 +08:00
|
|
|
)
|
|
|
|
|
2019-12-21 04:17:18 +08:00
|
|
|
if(WIN32)
|
|
|
|
add_definitions(-DLITTLE_ENDIAN)
|
|
|
|
endif()
|
2019-03-09 05:39:22 +08:00
|
|
|
|
|
|
|
add_library(MSPdtcc ${DTCC_CPP})
|
|
|
|
add_library(MSPCoordinateConversionService CCS/src/CoordinateConversion/CoordinateConversionService.cpp ${DTCC_CPP})
|
|
|
|
|
|
|
|
target_include_directories(MSPdtcc INTERFACE "$<INSTALL_INTERFACE:${DTCC_INCLUDES}>")
|
|
|
|
target_include_directories(MSPCoordinateConversionService INTERFACE $<INSTALL_INTERFACE:include/CoordinateConversion>)
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
if (BUILD_SHARED_LIBS)
|
|
|
|
add_definitions(
|
|
|
|
-DMSP_CCS_EXPORTS
|
|
|
|
-D_USRDLL
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
|
|
|
else()
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
target_link_libraries(MSPdtcc PRIVATE Threads::Threads ${CMAKE_DL_LIBS})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS MSPdtcc
|
|
|
|
EXPORT geotrans
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS MSPCoordinateConversionService
|
|
|
|
EXPORT geotrans
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
)
|
|
|
|
|
|
|
|
install(DIRECTORY "${CMAKE_SOURCE_DIR}/CCS/src/"
|
|
|
|
DESTINATION "include"
|
|
|
|
CONFIGURATIONS Release
|
|
|
|
FILES_MATCHING
|
|
|
|
PATTERN "*.h"
|
|
|
|
)
|
|
|
|
|
|
|
|
install(EXPORT geotrans NAMESPACE geotrans:: DESTINATION share/geotrans CONFIGURATIONS Release)
|