Mercurial > hg > orthanc-stone
comparison Resources/CMake/OrthancStoneConfiguration.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 | 300d8b8c48b3 |
comparison
equal
deleted
inserted
replaced
275:58e23e0dd86a | 276:5de5699ad570 |
---|---|
72 ) | 72 ) |
73 endif() | 73 endif() |
74 | 74 |
75 | 75 |
76 if (ENABLE_SDL AND ENABLE_QT) | 76 if (ENABLE_SDL AND ENABLE_QT) |
77 message("SDL and QT may not be defined together") | 77 message("SDL and QT may not be defined together") |
78 elseif(ENABLE_SDL) | 78 elseif(ENABLE_SDL) |
79 include(${CMAKE_CURRENT_LIST_DIR}/SdlConfiguration.cmake) | 79 message("SDL is enabled") |
80 include(${CMAKE_CURRENT_LIST_DIR}/SdlConfiguration.cmake) | |
80 add_definitions(-DORTHANC_ENABLE_NATIVE=1) | 81 add_definitions(-DORTHANC_ENABLE_NATIVE=1) |
82 add_definitions(-DORTHANC_ENABLE_QT=0) | |
81 add_definitions(-DORTHANC_ENABLE_SDL=1) | 83 add_definitions(-DORTHANC_ENABLE_SDL=1) |
82 elseif(ENABLE_QT) | 84 elseif(ENABLE_QT) |
83 include(${CMAKE_CURRENT_LIST_DIR}/QtConfiguration.cmake) | 85 message("QT is enabled") |
84 add_definitions(-DORTHANC_ENABLE_NATIVE=1) | 86 include(${CMAKE_CURRENT_LIST_DIR}/QtConfiguration.cmake) |
85 add_definitions(-DORTHANC_ENABLE_QT=1) | 87 add_definitions(-DORTHANC_ENABLE_NATIVE=1) |
88 add_definitions(-DORTHANC_ENABLE_QT=1) | |
89 add_definitions(-DORTHANC_ENABLE_SDL=0) | |
86 else() | 90 else() |
91 message("SDL and QT are both disabled") | |
87 unset(USE_SYSTEM_SDL CACHE) | 92 unset(USE_SYSTEM_SDL CACHE) |
88 add_definitions(-DORTHANC_ENABLE_SDL=0) | 93 add_definitions(-DORTHANC_ENABLE_SDL=0) |
89 add_definitions(-DORTHANC_ENABLE_QT=0) | 94 add_definitions(-DORTHANC_ENABLE_QT=0) |
90 add_definitions(-DORTHANC_ENABLE_NATIVE=0) | 95 add_definitions(-DORTHANC_ENABLE_NATIVE=0) |
91 endif() | 96 endif() |
276 ${CAIRO_SOURCES} | 281 ${CAIRO_SOURCES} |
277 ${PIXMAN_SOURCES} | 282 ${PIXMAN_SOURCES} |
278 | 283 |
279 # Optional components | 284 # Optional components |
280 ${SDL_SOURCES} | 285 ${SDL_SOURCES} |
286 ${QT_SOURCES} | |
281 ${BOOST_EXTENDED_SOURCES} | 287 ${BOOST_EXTENDED_SOURCES} |
282 ) | 288 ) |
283 | 289 |