Warning, /libraries/libmediawiki/examples/uploadsample/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # 0002 # Copyright (c) 2010-2014, Gilles Caulier, <caulier dot gilles at gmail dot com> 0003 # 0004 # Redistribution and use is allowed according to the terms of the BSD license. 0005 # For details see the accompanying COPYING-CMAKE-SCRIPTS file. 0006 0007 cmake_minimum_required(VERSION 3.16.0) 0008 0009 project(UploadSample) 0010 0011 find_package(Qt5 5.15.0 NO_MODULE REQUIRED Core Network Widgets) 0012 find_package(KF5MediaWiki REQUIRED) 0013 find_package(KF5CoreAddons REQUIRED NO_MODULE) 0014 0015 set(CMAKE_AUTOMOC ON) 0016 0017 add_executable( 0018 UploadSample 0019 main.cpp 0020 mainwindow.cpp 0021 ) 0022 0023 target_link_libraries(UploadSample 0024 PRIVATE 0025 Qt5::Core 0026 Qt5::Network 0027 Qt5::Widgets 0028 KF5::MediaWiki 0029 KF5::CoreAddons 0030 ) 0031 set_target_properties(UploadSample PROPERTIES COMPILE_FLAGS "-std=c++11")