Debian Codegraph @

core/tests/webservices/o2/fbinter/CMakeLists.txt

raw
1 #
2 # SPDX-FileCopyrightText: 2010-2026 by Gilles Caulier, <caulier dot gilles at gmail dot com>
3 #
4 # SPDX-License-Identifier: BSD-3-Clause
5 #
6
7 APPLY_COMMON_POLICIES()
8
9 include_directories(
10 $<TARGET_PROPERTY:Qt5::Xml,INTERFACE_INCLUDE_DIRECTORIES>
11 $<TARGET_PROPERTY:Qt5::Gui,INTERFACE_INCLUDE_DIRECTORIES>
12 $<TARGET_PROPERTY:Qt5::WebEngineWidgets,INTERFACE_INCLUDE_DIRECTORIES>
13 )
14
15
16 # The o2 library does not adhere to the flags we use
17 remove_definitions(
18 -DQT_NO_CAST_FROM_ASCII
19 -DQT_NO_CAST_TO_ASCII
20 -DQT_NO_URL_CAST_FROM_STRING
21 -DQT_NO_CAST_FROM_BYTEARRAY)
22
23 # =======================================================
24 # Facebook demo test tool
25
26 set(fbinter_SRCS ${CMAKE_SOURCE_DIR}/core/libs/dplugins/webservices/o2/examples/facebookexternalinterceptordemo/fbdemo.cpp
27 ${CMAKE_SOURCE_DIR}/core/libs/dplugins/webservices/o2/examples/facebookexternalinterceptordemo/main.cpp
28 ${CMAKE_SOURCE_DIR}/core/libs/dplugins/webservices/o2/examples/facebookexternalinterceptordemo/webenginepage.cpp
29 ${CMAKE_SOURCE_DIR}/core/libs/dplugins/webservices/o2/examples/facebookexternalinterceptordemo/webwindow.cpp
30 )
31
32 qt5_wrap_ui(fbinter_SRCS
33 ${CMAKE_SOURCE_DIR}/core/libs/dplugins/webservices/o2/examples/facebookexternalinterceptordemo/webwindow.ui
34 )
35
36 add_executable(fbinter_gui ${fbinter_SRCS})
37
38 target_link_libraries(fbinter_gui
39
40 digikamcore
41
42 ${COMMON_TEST_LINK}
43 Qt5::WebEngineWidgets
44 )
45
46 target_compile_definitions(fbinter_gui PRIVATE signals=Q_SIGNALS slots=Q_SLOTS)
47
48 if(MSVC)
49
50 target_compile_options(fbinter_gui PRIVATE /W0)
51
52 else()
53
54 target_compile_options(fbinter_gui PRIVATE -w)
55
56 endif()