Warning, /libraries/kpublictransport/src/osm/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org>
0002 # SPDX-License-Identifier: BSD-3-Clause
0003 
0004 add_library(KOSM STATIC
0005     abstractreader.cpp
0006     abstractwriter.cpp
0007     datatypes.cpp
0008     datasetmergebuffer.cpp
0009     element.cpp
0010     geomath.cpp
0011     io.cpp
0012     o5mparser.cpp
0013     overpassquery.cpp
0014     overpassquerymanager.cpp
0015     pathutil.cpp
0016     ztile.cpp
0017 
0018     io/o5mplugin.cpp
0019 )
0020 generate_export_header(KOSM BASE_NAME KOSM)
0021 set_target_properties(KOSM PROPERTIES
0022     VERSION ${KOSMINDOORMAP_VERSION}
0023     SOVERSION ${KOSMINDOORMAP_SOVERSION}
0024     EXPORT_NAME KOSM
0025 )
0026 
0027 target_include_directories(KOSM PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>")
0028 target_compile_definitions(KOSM PUBLIC "-DKOSM_STATIC_DEFINE=1")
0029 target_link_libraries(KOSM PUBLIC Qt::Core PRIVATE Qt::Network)
0030 set_target_properties(KOSM PROPERTIES POSITION_INDEPENDENT_CODE ON)
0031 
0032 if (NOT BUILD_SHARED_LIBS)
0033     install(TARGETS KOSM EXPORT KPublicTransportTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0034 endif()
0035 
0036 add_subdirectory(io)