~ubuntu-branches/debian/sid/libmediawiki/sid

« back to all changes in this revision

Viewing changes to examples/uploadsample/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Steve M. Robbins
  • Date: 2017-11-05 21:15:29 UTC
  • Revision ID: package-import@ubuntu.com-20171105211529-bgfi385yv79030cf
Tags: upstream-5.37.0
ImportĀ upstreamĀ versionĀ 5.37.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Copyright (c) 2010-2014, Gilles Caulier, <caulier dot gilles at gmail dot com>
 
3
#
 
4
# Redistribution and use is allowed according to the terms of the BSD license.
 
5
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
 
6
 
 
7
cmake_minimum_required(VERSION 2.8.12)
 
8
 
 
9
project(UploadSample)
 
10
 
 
11
find_package(Qt5 5.2.0 NO_MODULE REQUIRED Core Network Widgets)
 
12
find_package(KF5MediaWiki ${KF5_VERSION} REQUIRED)
 
13
find_package(KF5CoreAddons ${KF5_VERSION} REQUIRED NO_MODULE)
 
14
 
 
15
set(CMAKE_AUTOMOC ON)
 
16
 
 
17
add_executable(
 
18
    UploadSample
 
19
    main.cpp
 
20
    mainwindow.cpp
 
21
)
 
22
 
 
23
target_link_libraries(UploadSample
 
24
    PRIVATE
 
25
        Qt5::Core
 
26
        Qt5::Network
 
27
        Qt5::Widgets
 
28
        KF5::MediaWiki
 
29
        KF5::CoreAddons
 
30
)
 
31
set_target_properties(UploadSample PROPERTIES COMPILE_FLAGS "-std=c++11")