Warning, /graphics/digikam/core/libs/dplugins/webservices/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 #
0004 # SPDX-License-Identifier: BSD-3-Clause
0005 #
0006 
0007 APPLY_COMMON_POLICIES()
0008 
0009 # OAuth2 library ---------------------------------------------------
0010 
0011 # The o2 library does not adhere to the flags we use
0012 remove_definitions(
0013     -DQT_NO_CAST_FROM_ASCII
0014     -DQT_NO_CAST_TO_ASCII
0015     -DQT_NO_URL_CAST_FROM_STRING
0016     -DQT_NO_CAST_FROM_BYTEARRAY
0017     -DQT_DISABLE_DEPRECATED_BEFORE=0x050E00
0018     -DQT_NO_KEYWORDS
0019 )
0020 
0021 # Remove unwanted warnings from O2 library
0022 REMOVE_GCC_COMPILER_WARNINGS("-pedantic")
0023 DISABLE_CLANG_COMPILER_WARNINGS("4.99.99" "-Wno-extra-semi")
0024 
0025 # It also does not export symbols, so export all by default
0026 unset(CMAKE_CXX_VISIBILITY_PRESET)
0027 
0028 set(libwso2_SRCS
0029     o2/src/o2.cpp
0030     o2/src/o2reply.cpp
0031     o2/src/o2replyserver.cpp
0032     o2/src/o0jsonresponse.cpp
0033     o2/src/o2requestor.cpp
0034     o2/src/o2simplecrypt.cpp
0035     o2/src/o0settingsstore.cpp
0036     o2/src/o0baseauth.cpp
0037     o2/src/o0abstractstore.h
0038     o2/src/o0globals.h
0039     # Enable when needed
0040     o2/src/o1.cpp
0041     o2/src/o1requestor.cpp
0042     o2/src/o1timedreply.cpp
0043     o2/src/o1smugmug.cpp
0044     o2/src/o1twitter.h
0045     o2/src/oxtwitter.cpp
0046     #o2/src/o1dropbox.h
0047     #o2/src/o1flickr.h
0048     #o2/src/o2gft.cpp
0049     o2/src/o2pollserver.cpp
0050     o2/src/o2facebook.cpp
0051     #o2/src/o2skydrive.cpp
0052     #o2/src/o2hubic.cpp
0053     #o2/src/o2uber.cpp
0054     #o2/src/o2msgraph.cpp
0055     #o2/src/o2vimeo.cpp
0056 )
0057 
0058 # Used by digikamcore
0059 add_library(core_libwso2_obj OBJECT ${libwso2_SRCS})
0060 
0061 target_compile_definitions(core_libwso2_obj
0062                            PRIVATE
0063                            digikamcore_EXPORTS
0064 )