Warning, /graphics/digikam/core/tests/webservices/o2/sialis/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 #
0002 # SPDX-FileCopyrightText: 2010-2024, 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 include_directories(
0010     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Xml,INTERFACE_INCLUDE_DIRECTORIES>
0011     $<TARGET_PROPERTY:Qt5::Qml,INTERFACE_INCLUDE_DIRECTORIES>
0012     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Gui,INTERFACE_INCLUDE_DIRECTORIES>
0013 )
0014 
0015 
0016 # The o2 library does not adhere to the flags we use
0017 remove_definitions(
0018     -DQT_NO_CAST_FROM_ASCII
0019     -DQT_NO_CAST_TO_ASCII
0020     -DQT_NO_URL_CAST_FROM_STRING
0021     -DQT_NO_CAST_FROM_BYTEARRAY)
0022 
0023 # =======================================================
0024 # Twitter demo test tool
0025 
0026 set(sialis_SRCS ${CMAKE_SOURCE_DIR}/core/libs/dplugins/webservices/o2/examples/sialis/tweetmodel.cpp
0027                 ${CMAKE_SOURCE_DIR}/core/libs/dplugins/webservices/o2/examples/sialis/twitterapi.cpp
0028                 ${CMAKE_SOURCE_DIR}/core/libs/dplugins/webservices/o2/examples/sialis/main.cpp
0029 )
0030 
0031 qt5_add_resources(QT_RESOURCES ${CMAKE_SOURCE_DIR}/core/libs/dplugins/webservices/o2/examples/sialis/main.qml
0032 )
0033 
0034 add_executable(sialis_gui ${sialis_SRCS})
0035 
0036 target_link_libraries(sialis_gui
0037 
0038                       digikamcore
0039 
0040                       ${COMMON_TEST_LINK}
0041 
0042                       Qt5::Qml
0043                       Qt5::WebView
0044 )
0045 
0046 target_compile_definitions(sialis_gui PRIVATE signals=Q_SIGNALS slots=Q_SLOTS)
0047 
0048 if(MSVC)
0049 
0050     target_compile_options(sialis_gui PRIVATE /w)
0051 
0052 else()
0053 
0054     target_compile_options(sialis_gui PRIVATE -w)
0055 
0056 endif()