Session 028: Optional dependencies configuration
- Added WITH_VLC option to Lts/Application/THP (default OFF) - Added WITH_SCHUSSTAFEL option to CentralEffectSimulation (default OFF) - Added WITH_ARCGIS option to Explosions plugin (default OFF) - Protected VLC includes with #ifdef THP_HAS_VLC - Added qt5compat module to Docker image for QTextCodec support - Validated CMake configure and lts_common build in Docker container - All external dependencies now optional, build succeeds without them Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
d5af8b9764
commit
1edc9934fa
5 files changed
+205
-9
No files matched your search
+8
-2
@@ -5,9 +5,13 @@
|
||||
# $Author$
|
||||
#
|
||||
|
||||
OPTION(WITH_ARCGIS "Enable ArcGIS support" OFF)
|
||||
|
||||
#ADD_SUBDIRECTORY(UnitTests)
|
||||
|
||||
FIND_PACKAGE(ArcGIS REQUIRED)
|
||||
IF(WITH_ARCGIS)
|
||||
FIND_PACKAGE(ArcGIS REQUIRED)
|
||||
ENDIF()
|
||||
|
||||
SET(SRCS
|
||||
plugin.cpp
|
||||
@@ -31,7 +35,6 @@ SET(SRCS
|
||||
NGL_ADD_LIBRARY(AAR SV cesPluginExplosions MODULE ${SRCS})
|
||||
NGL_TARGET_LINK_LIBRARIES(cesPluginExplosions
|
||||
Qt6::Core
|
||||
ArcGIS::ArcGIS
|
||||
Qt6::Network
|
||||
Qt6::Widgets
|
||||
NGLLogger
|
||||
@@ -43,5 +46,8 @@ NGL_TARGET_LINK_LIBRARIES(cesPluginExplosions
|
||||
svcAesClient
|
||||
svcPdmClient
|
||||
)
|
||||
IF(WITH_ARCGIS)
|
||||
TARGET_LINK_LIBRARIES(cesPluginExplosions ArcGIS::ArcGIS)
|
||||
ENDIF()
|
||||
NGL_INSTALL_TARGET(cesPluginExplosions)
|
||||
|
||||
Reference in new issue
Block a user