Mercurial > hg > orthanc-stone
comparison Resources/CMake/QtConfiguration.cmake @ 276:5de5699ad570 am-2
first display in QCairoWidget; no mouse interaction yet
author | am@osimis.io |
---|---|
date | Mon, 27 Aug 2018 12:21:52 +0200 |
parents | dc1beee33134 |
children | 829163c6efc1 |
comparison
equal
deleted
inserted
replaced
275:58e23e0dd86a | 276:5de5699ad570 |
---|---|
1 # Stone of Orthanc | |
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
3 # Department, University Hospital of Liege, Belgium | |
4 # Copyright (C) 2017-2018 Osimis S.A., Belgium | |
5 # | |
6 # This program is free software: you can redistribute it and/or | |
7 # modify it under the terms of the GNU Affero General Public License | |
8 # as published by the Free Software Foundation, either version 3 of | |
9 # the License, or (at your option) any later version. | |
10 # | |
11 # This program is distributed in the hope that it will be useful, but | |
12 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 # Affero General Public License for more details. | |
15 # | |
16 # You should have received a copy of the GNU Affero General Public License | |
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
18 | |
19 | |
20 # Instruct CMake to run moc automatically when needed. | |
21 set(CMAKE_AUTOMOC ON) | |
22 SET(CMAKE_AUTOUIC ON) | |
23 set(CMAKE_INCLUDE_CURRENT_DIR ON) | |
24 | |
25 # Find the QtWidgets library | |
26 find_package(Qt5Widgets) | |
27 find_package(Qt5Core) | |
28 | |
29 #qt5_wrap_ui(UI_HEADERS | |
30 # ${ORTHANC_STONE_ROOT}/Applications/Samples/Qt/MainWindow.ui | |
31 #) | |
32 set_property(SOURCE ${ORTHANC_STONE_ROOT}/Applications/Samples/Qt/MainWindow.h PROPERTY SKIP_AUTOMOC ON) | |
33 | |
34 list(APPEND QT_SOURCES | |
35 ${ORTHANC_STONE_ROOT}/Applications/Qt/QCairoWidget.cpp | |
36 ${ORTHANC_STONE_ROOT}/Applications/Qt/BasicQtApplication.cpp | |
37 ${ORTHANC_STONE_ROOT}/Applications/Samples/Qt/MainWindow.cpp | |
38 ${ORTHANC_STONE_ROOT}/Applications/Samples/Qt/MainWindow.ui | |
39 ) | |
40 | |
41 include_directories(${ORTHANC_STONE_ROOT}/Applications/Qt/) | |
42 | |
43 link_libraries( | |
44 Qt5::Widgets | |
45 Qt5::Core | |
46 ) |