mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-04 21:16:59 +01:00
feat(editor): geoportal orthophoto layer streamed around the camera
This commit is contained in:
@@ -170,6 +170,7 @@ set(SOURCES
|
||||
"editor/editorModelSets.cpp"
|
||||
"editor/editorTerrain.cpp"
|
||||
"editor/editorTerrainStreamer.cpp"
|
||||
"editor/editorOrthophoto.cpp"
|
||||
"application/editormode.cpp"
|
||||
"input/editormouseinput.cpp"
|
||||
"application/editoruilayer.cpp"
|
||||
@@ -564,6 +565,19 @@ if (WIN32)
|
||||
target_link_libraries(${PROJECT_NAME} ws2_32)
|
||||
endif()
|
||||
|
||||
# http client of the editor's geoportal orthophoto layer: WinHTTP on Windows, libcurl elsewhere when available
|
||||
if (WIN32)
|
||||
target_link_libraries(${PROJECT_NAME} winhttp)
|
||||
else()
|
||||
find_package(CURL QUIET)
|
||||
if (CURL_FOUND)
|
||||
target_link_libraries(${PROJECT_NAME} CURL::libcurl)
|
||||
target_compile_definitions(${PROJECT_NAME} PRIVATE EU07_WITH_CURL)
|
||||
else()
|
||||
message(STATUS "libcurl not found: the editor's orthophoto layer will only show cached tiles")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (WITH_ZMQ)
|
||||
find_package(cppzmq REQUIRED)
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE ${cppzmq_INCLUDE_DIR})
|
||||
|
||||
Reference in New Issue
Block a user