File: CMakeLists.txt

package info (click to toggle)
libmediawiki 5.38.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 744 kB
  • sloc: cpp: 6,780; sh: 8; makefile: 4
file content (31 lines) | stat: -rw-r--r-- 753 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#
# Copyright (c) 2010-2014, Gilles Caulier, <caulier dot gilles at gmail dot com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.

cmake_minimum_required(VERSION 3.16.0)

project(EditSample)

find_package(Qt5 5.15.0 NO_MODULE REQUIRED Core Network Widgets)
find_package(KF5MediaWiki REQUIRED)
find_package(KF5CoreAddons REQUIRED NO_MODULE)

set(CMAKE_AUTOMOC ON)

add_executable(
    EditSample
    main.cpp
    mainwindow.cpp
)

target_link_libraries(EditSample
    PRIVATE
        Qt5::Core
        Qt5::Network
        Qt5::Widgets
        KF5::MediaWiki
        KF5::CoreAddons
)
set_target_properties(EditSample PROPERTIES COMPILE_FLAGS "-std=c++11")