Warning, /libraries/kosmindoormap/src/editor/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2023 Volker Krause <vkrause@kde.org> 0002 # SPDX-License-Identifier: BSD-2-Clause 0003 0004 if (TARGET KF6::Service AND TARGET KF6::CoreAddons) 0005 set(HAVE_KSERVICE TRUE) 0006 endif() 0007 configure_file(config-editorcontroller.h.in ${CMAKE_CURRENT_BINARY_DIR}/config-editorcontroller.h) 0008 0009 if (ANDROID) 0010 add_library(KOSMEditorController) 0011 else() 0012 add_library(KOSMEditorController STATIC) 0013 endif() 0014 target_sources(KOSMEditorController PRIVATE 0015 editorcontroller.cpp 0016 ) 0017 generate_export_header(KOSMEditorController BASE_NAME KOSMEditorController) 0018 set_target_properties(KOSMEditorController PROPERTIES POSITION_INDEPENDENT_CODE ON) 0019 target_link_libraries(KOSMEditorController PUBLIC KOSM PRIVATE Qt::Network Qt::Gui) 0020 if (HAVE_KSERVICE) 0021 target_link_libraries(KOSMEditorController PRIVATE KF6::Service KF6::CoreAddons) 0022 endif() 0023 0024 ecm_qt_declare_logging_category(KOSMEditorController 0025 HEADER logging.h 0026 IDENTIFIER KOSM::EditorLog 0027 CATEGORY_NAME org.kde.osm.editorcontroller 0028 DESCRIPTION "KOSM Editor Controller" 0029 EXPORT KOSMINDOORMAP 0030 ) 0031 0032 if (ANDROID) 0033 add_subdirectory(android) 0034 install(TARGETS KOSMEditorController ${KF_INSTALL_TARGETS_DEFAULT_ARGS}) 0035 endif() 0036 0037 ecm_add_qml_module(kosmeditorcontrollerplugin 0038 URI "org.kde.osm.editorcontroller" 0039 NO_GENERATE_PLUGIN_SOURCE 0040 NO_PLUGIN_OPTIONAL 0041 CLASS_NAME "KOSMEditorControllerPlugin" 0042 ) 0043 target_sources(kosmeditorcontrollerplugin PRIVATE editorcontrollerplugin.cpp) 0044 target_link_libraries(kosmeditorcontrollerplugin PRIVATE 0045 KOSMEditorController 0046 Qt::Quick 0047 ) 0048 ecm_finalize_qml_module(kosmeditorcontrollerplugin)