Warning, /utilities/filelight/src/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 #######################################################################
0002 # SPDX-FileCopyrightText: 2008-2014 Martin Sandsmark <martin.sandsmark@kde.org>
0003 # SPDX-FileCopyrightText: 2017-2022 Harald Sitter <sitter@kde.org>
0004 #
0005 # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0006 #######################################################################
0007
0008 ecm_setup_version(${PROJECT_VERSION}
0009 VARIABLE_PREFIX FILELIGHT
0010 VERSION_HEADER version.h)
0011
0012 include(CheckCXXSymbolExists)
0013 check_cxx_symbol_exists(sincos "math.h" HAVE_SINCOS)
0014 if (HAVE_SINCOS)
0015 add_definitions(-DHAVE_SINCOS)
0016 endif()
0017
0018 add_library(filelightInternal STATIC
0019 fileTree.cpp
0020 directoryIterator.cpp
0021 fileCleaner.cpp
0022 scan.cpp
0023 Config.cpp
0024 localLister.cpp
0025 remoteLister.cpp
0026 fileTree.h
0027 directoryIterator.h
0028 fileCleaner.h
0029 scan.h
0030 Config.h
0031 localLister.h
0032 remoteLister.h
0033 )
0034 ecm_qt_declare_logging_category(filelightInternal
0035 HEADER filelight_debug.h
0036 IDENTIFIER FILELIGHT_LOG
0037 CATEGORY_NAME org.kde.filelight
0038 DESCRIPTION "filelight"
0039 EXPORT FILELIGHT
0040 )
0041 if (WIN32)
0042 target_sources(filelightInternal PRIVATE windowsWalker.cpp)
0043 else()
0044 target_sources(filelightInternal PRIVATE posixWalker.cpp)
0045 endif()
0046 target_link_libraries(filelightInternal
0047 Qt6::Gui
0048 KF6::CoreAddons
0049 KF6::ConfigCore
0050 KF6::I18n
0051 KF6::KIOWidgets # Only used for KDirLister, may be able to move away from that.
0052 )
0053
0054 add_executable(filelight)
0055 target_sources(filelight PRIVATE
0056 radialMap/map.cpp
0057 radialMap/radialMap.cpp
0058 historyAction.cpp
0059 historyAction.h
0060 mainContext.cpp
0061 mainContext.h
0062 main.cpp
0063 fileTree.h
0064 radialMap/map.h
0065 radialMap/radialMap.h
0066 radialMap/sincos.h
0067 scan.h
0068 define.h
0069 localLister.h
0070 remoteLister.h
0071 historyAction.h
0072 Config.h
0073 qml/qml.qrc
0074 contextMenuContext.cpp
0075 contextMenuContext.h
0076 fileModel.cpp
0077 fileModel.h
0078 dropperItem.cpp
0079 dropperItem.h
0080 )
0081
0082 set(filelight_ICONS
0083 ${CMAKE_CURRENT_SOURCE_DIR}/../misc/16-apps-filelight.png
0084 ${CMAKE_CURRENT_SOURCE_DIR}/../misc/32-apps-filelight.png
0085 ${CMAKE_CURRENT_SOURCE_DIR}/../misc/48-apps-filelight.png
0086 ${CMAKE_CURRENT_SOURCE_DIR}/../misc/64-apps-filelight.png
0087 ${CMAKE_CURRENT_SOURCE_DIR}/../misc/128-apps-filelight.png
0088 )
0089 ecm_add_app_icon(filelight ICONS
0090 ${filelight_ICONS})
0091
0092 target_link_libraries(filelight
0093 KF6::I18n
0094 KF6::XmlGui
0095 Qt6::Quick
0096 Qt6::QuickControls2
0097 filelightInternal
0098 )
0099 if (WIN32)
0100 find_package(KDEWin REQUIRED)
0101 target_link_libraries(filelight kdewin)
0102 endif()
0103
0104 install(TARGETS filelight ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0105 ecm_qt_install_logging_categories(
0106 EXPORT FILELIGHT
0107 FILE filelight.categories
0108 DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
0109 )