Warning, /graphics/digikam/core/tests/webservices/o2/fbinter/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:Qt5::Xml,INTERFACE_INCLUDE_DIRECTORIES>
0011 $<TARGET_PROPERTY:Qt5::Gui,INTERFACE_INCLUDE_DIRECTORIES>
0012 $<TARGET_PROPERTY:Qt5::WebEngineWidgets,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 # Facebook demo test tool
0025
0026 set(fbinter_SRCS ${CMAKE_SOURCE_DIR}/core/libs/dplugins/webservices/o2/examples/facebookexternalinterceptordemo/fbdemo.cpp
0027 ${CMAKE_SOURCE_DIR}/core/libs/dplugins/webservices/o2/examples/facebookexternalinterceptordemo/main.cpp
0028 ${CMAKE_SOURCE_DIR}/core/libs/dplugins/webservices/o2/examples/facebookexternalinterceptordemo/webenginepage.cpp
0029 ${CMAKE_SOURCE_DIR}/core/libs/dplugins/webservices/o2/examples/facebookexternalinterceptordemo/webwindow.cpp
0030 )
0031
0032 qt5_wrap_ui(fbinter_SRCS
0033 ${CMAKE_SOURCE_DIR}/core/libs/dplugins/webservices/o2/examples/facebookexternalinterceptordemo/webwindow.ui
0034 )
0035
0036 add_executable(fbinter_gui ${fbinter_SRCS})
0037
0038 target_link_libraries(fbinter_gui
0039
0040 digikamcore
0041
0042 ${COMMON_TEST_LINK}
0043 Qt5::WebEngineWidgets
0044 )
0045
0046 target_compile_definitions(fbinter_gui PRIVATE signals=Q_SIGNALS slots=Q_SLOTS)
0047
0048 if(MSVC)
0049
0050 target_compile_options(fbinter_gui PRIVATE /w)
0051
0052 else()
0053
0054 target_compile_options(fbinter_gui PRIVATE -w)
0055
0056 endif()