Warning, /libraries/kosmindoormap/src/osm/io/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2020-2022 Volker Krause <vkrause@kde.org> 0002 # SPDX-License-Identifier: BSD-2-Clause 0003 0004 if (Protobuf_FOUND AND TARGET protobuf::protoc) 0005 PROTOBUF_GENERATE_CPP(pbf_srcs pbf_hdrs 0006 ../pbf/fileformat.proto 0007 ../pbf/osmformat.proto 0008 ) 0009 set_source_files_properties(${pbf_srcs} ${pbf_hdrs} PROPERTIES SKIP_AUTOMOC ON) 0010 0011 add_library(KOSM_pbfioplugin STATIC) 0012 target_sources(KOSM_pbfioplugin PRIVATE 0013 ${pbf_srcs} 0014 osmpbfplugin.cpp 0015 ../osmpbfparser.cpp 0016 ../osmpbfwriter.cpp 0017 ) 0018 target_include_directories(KOSM_pbfioplugin PRIVATE ${Protobuf_INCLUDE_DIRS}) 0019 target_compile_definitions(KOSM_pbfioplugin PRIVATE -DQT_STATICPLUGIN=1) 0020 set_target_properties(KOSM_pbfioplugin PROPERTIES POSITION_INDEPENDENT_CODE ON) 0021 target_link_libraries(KOSM_pbfioplugin 0022 PUBLIC KOSM 0023 PRIVATE protobuf::libprotobuf-lite ZLIB::ZLIB 0024 ) 0025 endif() 0026 0027 add_library(KOSM_xmlioplugin STATIC) 0028 target_sources(KOSM_xmlioplugin PRIVATE 0029 xmlplugin.cpp 0030 ../xmlparser.cpp 0031 ../xmlwriter.cpp 0032 ) 0033 set_target_properties(KOSM_xmlioplugin PROPERTIES POSITION_INDEPENDENT_CODE ON) 0034 target_compile_definitions(KOSM_xmlioplugin PRIVATE -DQT_STATICPLUGIN=1) 0035 target_link_libraries(KOSM_xmlioplugin PUBLIC KOSM)