Warning, /maui/pix/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(pix_SRCS 0007 main.cpp 0008 pix.cpp pix.h 0009 models/gallery/gallery.cpp 0010 models/folders/folders.cpp 0011 models/folders/placesmodel.cpp 0012 models/tags/tagsmodel.cpp 0013 models/cities/citiesmodel.cpp 0014 pixserver.cpp ) 0015 0016 set(pix_ASSETS 0017 imgs.qrc) 0018 0019 if(QUICK_COMPILER) 0020 qtquick_compiler_add_resources(pix_QML_QRC qml.qrc) 0021 else() 0022 qt5_add_resources(pix_QML_QRC qml.qrc) 0023 endif() 0024 0025 if(ANDROID) 0026 add_library(${PROJECT_NAME} SHARED 0027 ${pix_SRCS} 0028 ${pix_ASSETS} 0029 ${pix_QML_QRC}) 0030 else() 0031 add_executable(${PROJECT_NAME} 0032 ${pix_SRCS} 0033 ${pix_ASSETS} 0034 ${pix_QML_QRC}) 0035 endif() 0036 0037 target_compile_definitions(${PROJECT_NAME} 0038 PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>) 0039 0040 target_link_libraries(${PROJECT_NAME} 0041 MauiKit3 0042 MauiKit3::FileBrowsing 0043 MauiKit3::ImageTools 0044 Qt5::Qml 0045 Qt5::Positioning 0046 Qt5::Concurrent 0047 KF5::I18n) 0048 0049 if(ANDROID) 0050 find_package(OpenSSL REQUIRED) 0051 target_link_libraries(${PROJECT_NAME} Qt5::AndroidExtras Qt5::QuickControls2 OpenSSL::SSL) 0052 kde_source_files_enable_exceptions(pix pix.cpp) 0053 else() 0054 target_link_libraries(${PROJECT_NAME} Qt5::Widgets) 0055 endif() 0056 0057 if(UNIX AND NOT APPLE AND NOT ANDROID) 0058 install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0059 install(FILES org.kde.pix.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}) 0060 #TODO: port to ecm_install_icons() 0061 install(FILES assets/pix.svg DESTINATION ${KDE_INSTALL_ICONDIR}/hicolor/scalable/apps) 0062 endif()