Adds missing toolchain packages and include dirs so generated headers resolve.
53 lines
1.1 KiB
CMake
Executable File
53 lines
1.1 KiB
CMake
Executable File
#
|
|
# $Id$
|
|
# $HeadURL$
|
|
# $Author$
|
|
#
|
|
|
|
# Make ${Qt6_Gui} optional
|
|
if(QT6_GUI_AVAILABLE AND TARGET Qt6::Gui)
|
|
set(Qt6_Gui ${Qt6_Gui})
|
|
else()
|
|
set(Qt6_Gui "")
|
|
endif()
|
|
|
|
|
|
NGL_ADD_LIBRARY2(WS SV HLA LtsElevation SHARED
|
|
lts_elevation_manager.cpp
|
|
lts_elevation_manager.h
|
|
logger.cpp
|
|
logger.h
|
|
)
|
|
NGL_TARGET_INCLUDE_DIRECTORIES(LtsElevation
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../
|
|
${CMAKE_SOURCE_DIR}/Lts/Common
|
|
${CMAKE_SOURCE_DIR}/Lts/Common/LtsUtils
|
|
${CMAKE_SOURCE_DIR}/Lts/Viewer/SituationMap
|
|
${CMAKE_SOURCE_DIR}/Lts/Viewer/SituationMap/Common
|
|
)
|
|
if(QT6_GUI_AVAILABLE)
|
|
NGL_TARGET_LINK_LIBRARIES(LtsElevation
|
|
PRIVATE
|
|
NGLLogger
|
|
## LtsSessionDataDds
|
|
PUBLIC
|
|
LtsUtilsCoreHeaderOnly
|
|
Qt6::Core
|
|
${Qt6_Gui}
|
|
)
|
|
endif()
|
|
|
|
if(BUILD_RTI)
|
|
# All ElevationMapManager / resource_path / exm-dtc usages live inside
|
|
# #ifdef BUILD_RTI in lts_elevation_manager.cpp (Qt5 dependencies restored).
|
|
target_link_libraries(LtsElevation PRIVATE
|
|
AsmDataPluginInterface
|
|
ExmDataPluginInterface
|
|
situationMapCommon
|
|
situationMapElevationMap
|
|
)
|
|
endif()
|
|
|
|
ADD_SUBDIRECTORY(UnitTest_Elevation)
|