Warning, /graphics/digikam/core/libs/pgfutils/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 #
0002 # SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier, <caulier dot gilles at gmail dot com>
0003 # SPDX-FileCopyrightText: 2015      by Veaceslav Munteanu, <veaceslav dot munteanu90 at gmail dot com>
0004 #
0005 # SPDX-License-Identifier: BSD-3-Clause
0006 #
0007 
0008 APPLY_COMMON_POLICIES()
0009 
0010 REMOVE_COMPILER_WARNINGS("-Wcast-align")
0011 REMOVE_COMPILER_WARNINGS("-Wzero-as-null-pointer-constant")
0012 
0013 DISABLE_CLANG_COMPILER_WARNINGS("4.99.99" "-Wno-keyword-macro")
0014 DISABLE_CLANG_COMPILER_WARNINGS("4.99.99" "-Wno-reorder-ctor")
0015 
0016 include_directories(
0017     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Gui,INTERFACE_INCLUDE_DIRECTORIES>
0018     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Core,INTERFACE_INCLUDE_DIRECTORIES>
0019 
0020     ${CMAKE_CURRENT_SOURCE_DIR}/libpgf
0021 )
0022 
0023 set(libpgfutils_SRCS
0024     ${CMAKE_CURRENT_SOURCE_DIR}/pgfutils.cpp
0025     ${CMAKE_CURRENT_SOURCE_DIR}/libpgf/Decoder.cpp
0026     ${CMAKE_CURRENT_SOURCE_DIR}/libpgf/Encoder.cpp
0027     ${CMAKE_CURRENT_SOURCE_DIR}/libpgf/PGFimage.cpp
0028     ${CMAKE_CURRENT_SOURCE_DIR}/libpgf/PGFstream.cpp
0029     ${CMAKE_CURRENT_SOURCE_DIR}/libpgf/Subband.cpp
0030     ${CMAKE_CURRENT_SOURCE_DIR}/libpgf/WaveletTransform.cpp
0031 )
0032 
0033 # Don't process automoc on Libpgf headers
0034 
0035 file(GLOB_RECURSE libpgf_headers ${CMAKE_CURRENT_SOURCE_DIR}/libpgf/*.h)
0036 
0037 foreach(_file ${libpgf_headers})
0038     set_property(SOURCE ${_file} PROPERTY SKIP_AUTOMOC ON)
0039 endforeach()
0040 
0041 # Used by digikamcore
0042 add_library(core_pgfutils_obj OBJECT ${libpgfutils_SRCS})
0043 
0044 target_compile_definitions(core_pgfutils_obj
0045                            PRIVATE
0046                            digikamcore_EXPORTS
0047 )