Warning, /maui/nota/src/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # Copyright 2018-2020 Camilo Higuita <milo.h@aol.com> 0002 # Copyright 2018-2020 Nitrux Latinoamericana S.C. 0003 # 0004 # SPDX-License-Identifier: GPL-3.0-or-later 0005 0006 set(nota_SRCS 0007 main.cpp 0008 models/historymodel.cpp 0009 controllers/server.cpp) 0010 0011 set(nota_HDRS 0012 models/historymodel.h 0013 nota.h) 0014 0015 set(nota_ASSETS 0016 assets/img_assets.qrc) 0017 0018 0019 if(QUICK_COMPILER) 0020 qtquick_compiler_add_resources(nota_QML_QRC qml.qrc plugins/plugins.qrc) 0021 else() 0022 qt5_add_resources(nota_QML_QRC qml.qrc plugins/plugins.qrc) 0023 endif() 0024 0025 if(UNIX AND NOT ANDROID) 0026 qt_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/controllers/server.h org.kde.Nota.xml) 0027 qt_add_dbus_adaptor(nota_dbus_SRCS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Nota.xml controllers/server.h Server) 0028 qt_add_dbus_interface(nota_dbus_SRCS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Nota.xml notainterface) 0029 endif() 0030 0031 if(ANDROID) 0032 add_library(${PROJECT_NAME} SHARED 0033 ${nota_SRCS} 0034 ${nota_HDRS} 0035 ${nota_ASSETS} 0036 ${nota_QML_QRC}) 0037 else() 0038 add_executable(${PROJECT_NAME} 0039 ${nota_SRCS} 0040 ${nota_dbus_SRCS} 0041 ${nota_HDRS} 0042 ${nota_ASSETS} 0043 ${nota_QML_QRC}) 0044 endif() 0045 0046 if (ANDROID) 0047 target_link_libraries(${PROJECT_NAME} Qt5::AndroidExtras Qt5::QuickControls2) 0048 elseif(UNIX) 0049 target_link_libraries(${PROJECT_NAME} Qt5::Widgets Qt5::DBus) 0050 endif() 0051 0052 target_compile_definitions(${PROJECT_NAME} 0053 PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>) 0054 0055 target_link_libraries(${PROJECT_NAME} MauiKit3 MauiKit3::FileBrowsing MauiKit3::TextEditor Qt5::Quick Qt5::Qml KF5::CoreAddons KF5::I18n) 0056 0057 if(UNIX AND NOT APPLE AND NOT ANDROID) 0058 install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0059 install(FILES assets/nota.svg DESTINATION ${KDE_INSTALL_ICONDIR}/hicolor/scalable/apps) 0060 endif()