Warning, /graphics/digikam/core/tests/webservices/o2/twdemo/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:Qt${QT_VERSION_MAJOR}::Gui,INTERFACE_INCLUDE_DIRECTORIES> 0012 ) 0013 0014 0015 # The o2 library does not adhere to the flags we use 0016 remove_definitions( 0017 -DQT_NO_CAST_FROM_ASCII 0018 -DQT_NO_CAST_TO_ASCII 0019 -DQT_NO_URL_CAST_FROM_STRING 0020 -DQT_NO_CAST_FROM_BYTEARRAY) 0021 0022 # ======================================================= 0023 # Twitter demo test tool 0024 0025 set(twdemo_SRCS ${CMAKE_SOURCE_DIR}/core/libs/dplugins/webservices/o2/examples/twitterdemo/tweeter.cpp 0026 ${CMAKE_SOURCE_DIR}/core/libs/dplugins/webservices/o2/examples/twitterdemo/main.cpp 0027 ) 0028 0029 add_executable(twdemo_gui ${twdemo_SRCS}) 0030 0031 target_link_libraries(twdemo_gui 0032 0033 digikamcore 0034 0035 ${COMMON_TEST_LINK} 0036 ) 0037 0038 target_compile_definitions(twdemo_gui PRIVATE signals=Q_SIGNALS slots=Q_SLOTS) 0039 0040 if(MSVC) 0041 0042 target_compile_options(twdemo_gui PRIVATE /w) 0043 0044 else() 0045 0046 target_compile_options(twdemo_gui PRIVATE -w) 0047 0048 endif()