Warning, /graphics/digikam/project/bundles/3rdparty/ext_gmicqt/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # Script to build GMic-Qt 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(PREFIX_ext_gmicqt "${EXTPREFIX}") 0009 0010 set(GmicQt_Conf -DGMIC_QT_HOST=digikam 0011 -DENABLE_ASAN=OFF 0012 -DENABLE_FFTW3=ON 0013 -DENABLE_SYSTEM_GMIC=OFF 0014 -DENABLE_CURL=OFF 0015 ${GLOBAL_PROFILE} 0016 ) 0017 0018 if(${ENABLE_QTVERSION} MATCHES "6") 0019 0020 set(GmicQt_Conf ${GmicQt_Conf} -DBUILD_WITH_QT6=ON) 0021 0022 else() 0023 0024 set(GmicQt_Conf ${GmicQt_Conf} -DBUILD_WITH_QT6=OFF) 0025 0026 endif() 0027 0028 JoinListAsString("${GmicQt_Conf}" " " BASH_OPTIONS) 0029 0030 # Download and build gmic-qt 0031 if (MINGW) 0032 0033 ExternalProject_Add(ext_gmic_qt 0034 0035 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0036 GIT_REPOSITORY https://github.com/cgilles/gmic-qt.git 0037 0038 SOURCE_DIR gmic-qt 0039 0040 CONFIGURE_COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/../../../../bootstrap.mxe <SOURCE_DIR>/. && 0041 <SOURCE_DIR>/bootstrap.mxe ${MXE_BUILDROOT} RelWithDebInfo ${BASH_OPTIONS} 0042 0043 BUILD_COMMAND cd <SOURCE_DIR>/build.mxe && $(MAKE) 0044 0045 INSTALL_COMMAND cd <SOURCE_DIR>/build.mxe && make install/fast 0046 0047 BUILD_IN_SOURCE 1 0048 0049 UPDATE_COMMAND "" 0050 ) 0051 0052 elseif(APPLE) 0053 0054 ExternalProject_Add(ext_gmic_qt 0055 0056 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0057 GIT_REPOSITORY https://github.com/cgilles/gmic-qt.git 0058 0059 SOURCE_DIR gmic-qt 0060 INSTALL_DIR ${PREFIX_ext_gmicqt} 0061 0062 CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${PREFIX_ext_gmic} 0063 -DCMAKE_BUILD_TYPE=RelWithDebInfo 0064 ${GmicQt_Conf} 0065 # -DCMAKE_CXX_COMPILER=${INSTALL_ROOT}/bin/g++ 0066 # -DCMAKE_C_COMPILER=${INSTALL_ROOT}/bin/gcc 0067 0068 UPDATE_COMMAND "" 0069 ) 0070 0071 else() # Linux 0072 0073 ExternalProject_Add(ext_gmic_qt 0074 0075 DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR} 0076 GIT_REPOSITORY https://github.com/cgilles/gmic-qt.git 0077 0078 SOURCE_DIR gmic-qt 0079 INSTALL_DIR ${PREFIX_ext_gmicqt} 0080 0081 CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${PREFIX_ext_gmic} -DCMAKE_BUILD_TYPE=RelWithDebInfo ${GmicQt_Conf} 0082 0083 UPDATE_COMMAND "" 0084 ) 0085 0086 endif()