Warning, /graphics/digikam/project/bundles/3rdparty/ext_mosaicwall/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # Script to build MosaicWall 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 set(MosaicWall_Conf -DENABLE_DPLUGIN=ON 0009 ${GLOBAL_PROFILE} 0010 ) 0011 0012 if(${ENABLE_QTVERSION} MATCHES "6") 0013 0014 set(MosaicWall_Conf ${MosaicWall_Conf} -DBUILD_WITH_QT6=ON) 0015 0016 else() 0017 0018 set(MosaicWall_Conf ${MosaicWall_Conf} -DBUILD_WITH_QT6=OFF) 0019 0020 endif() 0021 0022 JoinListAsString("${MosaicWall_Conf}" " " BASH_OPTIONS) 0023 0024 SET(PREFIX_ext_mosaicwall "${EXTPREFIX}") 0025 0026 if (MINGW) 0027 0028 ExternalProject_Add(ext_mosaicwall 0029 0030 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0031 GIT_REPOSITORY https://github.com/scheckmedia/ImageMosaicWall.git 0032 0033 CONFIGURE_COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.mxe <SOURCE_DIR>/. && 0034 <SOURCE_DIR>/bootstrap.mxe ${MXE_BUILDROOT} RelWithDebInfo ${BASH_OPTIONS} 0035 0036 BUILD_COMMAND cd <SOURCE_DIR>/build.mxe && $(MAKE) 0037 0038 INSTALL_COMMAND cd <SOURCE_DIR>/build.mxe && make install/fast 0039 0040 BUILD_IN_SOURCE 1 0041 0042 UPDATE_COMMAND "" 0043 ) 0044 0045 else() # MacOS, Linux, and VCPKG 0046 0047 ExternalProject_Add(ext_mosaicwall 0048 0049 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0050 GIT_REPOSITORY https://github.com/scheckmedia/ImageMosaicWall.git 0051 0052 INSTALL_DIR ${PREFIX_ext_mosaicwall} 0053 0054 PATCH_COMMAND git reset --hard && 0055 ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/mosaicwall-exiv2-cpp17.patch 0056 0057 CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${PREFIX_ext_mosaicwall} -DCMAKE_BUILD_TYPE=RelWithDebInfo ${MosaicWall_Conf} 0058 0059 BUILD_IN_SOURCE 1 0060 0061 UPDATE_COMMAND "" 0062 ) 0063 0064 endif()