Warning, /maui/index-fm/src/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # Copyright 2018-2021 Camilo Higuita <milo.h@aol.com> 0002 # Copyright 2018-2021 Nitrux Latinoamericana S.C. 0003 # 0004 # SPDX-License-Identifier: GPL-3.0-or-later 0005 0006 set(index_SRCS 0007 main.cpp 0008 index.cpp 0009 controllers/filepreviewer.cpp 0010 controllers/compressedfile.cpp 0011 controllers/dirinfo.cpp 0012 controllers/folderconfig.cpp 0013 controllers/sessionmanager.cpp 0014 controllers/fileproperties.cpp 0015 controllers/patharrowbackground.cpp 0016 models/recentfilesmodel.cpp 0017 models/pathlist.cpp 0018 index_assets.qrc 0019 data/data.qrc) 0020 0021 if(QUICK_COMPILER) 0022 qtquick_compiler_add_resources(index_QML_QRC qml.qrc) 0023 else() 0024 qt5_add_resources(index_QML_QRC qml.qrc) 0025 endif() 0026 0027 if(UNIX AND NOT ANDROID) 0028 qt_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/index.h org.kde.Index.xml) 0029 qt_add_dbus_adaptor(index_dbus_SRCS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Index.xml index.h Index) 0030 qt_add_dbus_interface(index_dbus_SRCS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Index.xml indexinterface) 0031 endif() 0032 0033 if(ANDROID) 0034 add_library(${PROJECT_NAME} 0035 SHARED 0036 ${index_SRCS} 0037 ${index_QML_QRC}) 0038 else() 0039 add_executable(${PROJECT_NAME} 0040 ${index_SRCS} 0041 ${index_dbus_SRCS} 0042 ${index_QML_QRC}) 0043 endif() 0044 0045 if (ANDROID) 0046 target_link_libraries(${PROJECT_NAME} 0047 Qt5::AndroidExtras 0048 Qt5::QuickControls2) 0049 kde_source_files_enable_exceptions(${PROJECT_NAME} index.cpp) 0050 0051 # set_target_properties(create-apk-${PROJECT_NAME} PROPERTIES ANDROID_APK_DIR "${APK_DIR}") 0052 0053 elseif(UNIX) 0054 target_link_libraries(${PROJECT_NAME} KF5::KIOCore KF5::KIOFileWidgets Qt5::DBus) 0055 endif() 0056 0057 if(UNIX OR WIN32 OR APPLE AND NOT ANDROID) 0058 target_link_libraries(${PROJECT_NAME} Qt5::Widgets) 0059 endif() 0060 0061 target_compile_definitions(${PROJECT_NAME} 0062 PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>) 0063 0064 target_link_libraries(${PROJECT_NAME} 0065 MauiKit3 0066 MauiKit3::FileBrowsing 0067 Qt5::Quick 0068 Qt5::Qml 0069 KF5::Archive 0070 KF5::CoreAddons 0071 KF5::I18n) 0072 0073 #TODO: port to ecm_install_icons() 0074 if(UNIX AND NOT APPLE AND NOT ANDROID) 0075 install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0076 install(FILES org.kde.index.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}) 0077 0078 install(FILES assets/index.svg DESTINATION ${KDE_INSTALL_ICONDIR}/hicolor/scalable/apps) 0079 endif() 0080