|
|
|
@ -500,45 +500,24 @@ endif() |
|
|
|
|
|
|
|
|
|
#YV |
|
|
|
|
############################### QT ################################ |
|
|
|
|
|
|
|
|
|
set(WITH_QT OFF CACHE BOOL "Build with QT Backend support") |
|
|
|
|
set(WITH_QT_OPENGL ON CACHE BOOL "Add OpenGL extension to QT") |
|
|
|
|
|
|
|
|
|
set(HAVE_QT 0) |
|
|
|
|
set(HAVE_QT_OPENGL 0) |
|
|
|
|
set(AUTOSWITCH_QT 1)#uses to disable QT |
|
|
|
|
|
|
|
|
|
#set the booleans |
|
|
|
|
find_package(Qt4)# QUIET) |
|
|
|
|
if (QT4_FOUND AND AUTOSWITCH_QT) |
|
|
|
|
set(WITH_QT ON CACHE BOOL "Build with QT Backend support") |
|
|
|
|
find_package (OpenGL QUIET) |
|
|
|
|
if (QT_QTOPENGL_FOUND AND OPENGL_FOUND) |
|
|
|
|
set(WITH_QT_OPENGL ON CACHE BOOL "Add OpenGL extension to QT") |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#test if QT Bool is true |
|
|
|
|
if (WITH_QT) |
|
|
|
|
set(HAVE_QT 1) |
|
|
|
|
add_definitions(-DHAVE_QT=1) |
|
|
|
|
|
|
|
|
|
if(UNIX) |
|
|
|
|
if (APPLE) |
|
|
|
|
set(WITH_CARBON OFF CACHE BOOL "Use Carbon for UI instead of Cocoa" FORCE) |
|
|
|
|
message(STATUS "QT detected, so Carbon and Cocoa disabled") |
|
|
|
|
else() |
|
|
|
|
set(WITH_GTK OFF CACHE BOOL "Include GTK support" FORCE) |
|
|
|
|
set(HAVE_GTK 0) |
|
|
|
|
set(HAVE_GTHREAD 0) |
|
|
|
|
message(STATUS "QT detected, so GTK and GThread disabled") |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
if (WITH_QT_OPENGL) |
|
|
|
|
message(STATUS "OpenGL for QT enabled") |
|
|
|
|
set(HAVE_QT_OPENGL 1) |
|
|
|
|
add_definitions(-DOPENCV_GL=1) |
|
|
|
|
if (WITH_QT) |
|
|
|
|
find_package(Qt4) |
|
|
|
|
if (QT4_FOUND) |
|
|
|
|
set(HAVE_QT 1) |
|
|
|
|
find_package (OpenGL QUIET) |
|
|
|
|
if (QT_QTOPENGL_FOUND AND OPENGL_FOUND) |
|
|
|
|
set(HAVE_QT_OPENGL 1) |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
############################### TBB ################################ |
|
|
|
|
|
|
|
|
|
if (WITH_TBB) |
|
|
|
@ -1166,35 +1145,30 @@ message(STATUS " Linker flags (Debug): ${CMAKE_SHARED_LINKER_FLAGS} ${CM |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
#YV |
|
|
|
|
if(UNIX AND NOT APPLE) |
|
|
|
|
message(STATUS "") |
|
|
|
|
message(STATUS " GUI: ") |
|
|
|
|
if (HAVE_QT) |
|
|
|
|
message(STATUS " QT 4.x: ${HAVE_QT}") |
|
|
|
|
message(STATUS " QT OpenGL support: ${HAVE_QT_OPENGL}") |
|
|
|
|
else() |
|
|
|
|
message(STATUS " GTK+ 2.x: ${HAVE_GTK}") |
|
|
|
|
message(STATUS " GThread: ${HAVE_GTHREAD}") |
|
|
|
|
endif() |
|
|
|
|
message(STATUS "") |
|
|
|
|
endif() |
|
|
|
|
message(STATUS "") |
|
|
|
|
message(STATUS " GUI: ") |
|
|
|
|
|
|
|
|
|
if(APPLE) |
|
|
|
|
message(STATUS "") |
|
|
|
|
if (HAVE_QT) |
|
|
|
|
message(STATUS " GUI: ") |
|
|
|
|
message(STATUS " QT 4.x: ${HAVE_QT}") |
|
|
|
|
message(STATUS " QT OpenGL support: ${HAVE_QT_OPENGL}") |
|
|
|
|
else() |
|
|
|
|
if(WITH_CARBON) |
|
|
|
|
message(STATUS " GUI Back-end: Carbon") |
|
|
|
|
else() |
|
|
|
|
message(STATUS " GUI Back-end: Cocoa") |
|
|
|
|
endif() |
|
|
|
|
message(STATUS "") |
|
|
|
|
endif() |
|
|
|
|
if (HAVE_QT) |
|
|
|
|
message(STATUS " QT 4.x: ${HAVE_QT}") |
|
|
|
|
message(STATUS " QT OpenGL support: ${HAVE_QT_OPENGL}") |
|
|
|
|
else() |
|
|
|
|
if(WIN32) |
|
|
|
|
message(STATUS " Win32 UI: 1") |
|
|
|
|
else() |
|
|
|
|
if(APPLE) |
|
|
|
|
if(WITH_CARBON) |
|
|
|
|
message(STATUS " Carbon: 1") |
|
|
|
|
else() |
|
|
|
|
message(STATUS " Cocoa: 1") |
|
|
|
|
endif() |
|
|
|
|
else() |
|
|
|
|
message(STATUS " GTK+ 2.x: ${HAVE_GTK}") |
|
|
|
|
message(STATUS " GThread: ${HAVE_GTHREAD}") |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
message(STATUS "") |
|
|
|
|
message(STATUS " Image I/O: ") |
|
|
|
|
if(NOT WITH_JPEG OR JPEG_FOUND) |
|
|
|
|
message(STATUS " JPEG: ${JPEG_FOUND}") |
|
|
|
|