Warning, /graphics/digikam/project/bundles/3rdparty/ext_flowview/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # Script to build FlowView plugin for digiKam bundle. 0002 # 0003 # SPDX-FileCopyrightText: 2015-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0004 # 0005 # SPDX-License-Identifier: BSD-3-Clause 0006 # 0007 # 0008 0009 set(FlowView_Conf ${GLOBAL_PROFILE}) 0010 0011 if(${ENABLE_QTVERSION} MATCHES "6") 0012 0013 set(FlowView_Conf ${FlowView_Conf} -DBUILD_WITH_QT6=ON) 0014 0015 else() 0016 0017 set(FlowView_Conf ${FlowView_Conf} -DBUILD_WITH_QT6=OFF) 0018 0019 endif() 0020 0021 JoinListAsString("${FlowView_Conf}" " " BASH_OPTIONS) 0022 0023 set(PREFIX_ext_flowview "${EXTPREFIX}") 0024 0025 if (MINGW) 0026 0027 ExternalProject_Add(ext_flowview 0028 0029 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0030 GIT_REPOSITORY https://github.com/cathaysia/digikamflowplugin.git 0031 0032 PATCH_COMMAND git reset --hard && 0033 git submodule update --init && 0034 cd extern/QtFlowLayout && 0035 git checkout master 0036 0037 CONFIGURE_COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.mxe <SOURCE_DIR>/. && 0038 <SOURCE_DIR>/bootstrap.mxe ${MXE_BUILDROOT} RelWithDebInfo ${BASH_OPTIONS} 0039 0040 BUILD_COMMAND cd <SOURCE_DIR>/build.mxe && $(MAKE) 0041 0042 INSTALL_COMMAND cd <SOURCE_DIR>/build.mxe && make install/fast 0043 0044 BUILD_IN_SOURCE 1 0045 0046 UPDATE_COMMAND "" 0047 ) 0048 0049 else() # MacOS and Linux 0050 0051 ExternalProject_Add(ext_flowview 0052 0053 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0054 GIT_REPOSITORY https://github.com/cathaysia/digikamflowplugin.git 0055 0056 PATCH_COMMAND git reset --hard && 0057 git submodule update --init && 0058 cd extern/QtFlowLayout && 0059 git checkout master 0060 0061 CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${PREFIX_ext_flowview} -DCMAKE_BUILD_TYPE=RelWithDebInfo ${FlowView_Conf} 0062 0063 BUILD_IN_SOURCE 1 0064 0065 UPDATE_COMMAND "" 0066 ) 0067 0068 endif()