Mercurial > hg > orthanc-stone
comparison Resources/CMake/QtConfiguration.cmake @ 1037:4e713ef78a5a
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 07 Oct 2019 18:01:03 +0200 |
parents | 6d5382fa45e1 |
children | 14c0a29cd9ec |
comparison
equal
deleted
inserted
replaced
1036:d7d3227c11a9 | 1037:4e713ef78a5a |
---|---|
29 link_libraries( | 29 link_libraries( |
30 Qt5::Widgets | 30 Qt5::Widgets |
31 Qt5::Core | 31 Qt5::Core |
32 ) | 32 ) |
33 | 33 |
34 if (ENABLE_OPENGL) | |
35 link_libraries( | |
36 Qt5::QtOpenGL | |
37 ) | |
38 endif() | |
39 | |
34 # Create aliases for the CMake commands | 40 # Create aliases for the CMake commands |
35 macro(ORTHANC_QT_WRAP_UI) | 41 macro(ORTHANC_QT_WRAP_UI) |
36 QT5_WRAP_UI(${ARGN}) | 42 QT5_WRAP_UI(${ARGN}) |
37 endmacro() | 43 endmacro() |
38 | 44 |
39 macro(ORTHANC_QT_WRAP_CPP) | 45 macro(ORTHANC_QT_WRAP_CPP) |
40 QT5_WRAP_CPP(${ARGN}) | 46 QT5_WRAP_CPP(${ARGN}) |
41 endmacro() | 47 endmacro() |
42 | 48 |
43 else() | 49 else() |
44 message("Qt5 has not been found, trying with Qt4") | 50 message("Qt5 has not been found, trying with Qt4") |
45 find_package(Qt4 REQUIRED QtGui) | 51 find_package(Qt4 REQUIRED QtGui) |
46 link_libraries( | 52 link_libraries( |
47 Qt4::QtGui | 53 Qt4::QtGui |
48 ) | 54 ) |
49 | 55 |
56 if (ENABLE_OPENGL) | |
57 link_libraries( | |
58 Qt4::QtOpenGL | |
59 ) | |
60 endif() | |
61 | |
50 # Create aliases for the CMake commands | 62 # Create aliases for the CMake commands |
51 macro(ORTHANC_QT_WRAP_UI) | 63 macro(ORTHANC_QT_WRAP_UI) |
52 QT4_WRAP_UI(${ARGN}) | 64 QT4_WRAP_UI(${ARGN}) |
53 endmacro() | 65 endmacro() |
54 | 66 |