mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
471 B
16 lines
471 B
4 years ago
|
#--- Win32 UI ---
|
||
|
ocv_clear_vars(HAVE_WIN32UI)
|
||
|
if(WITH_WIN32UI)
|
||
|
try_compile(HAVE_WIN32UI
|
||
|
"${CMAKE_CURRENT_BINARY_DIR}"
|
||
|
"${OpenCV_SOURCE_DIR}/cmake/checks/win32uitest.cpp"
|
||
|
CMAKE_FLAGS "-DLINK_LIBRARIES:STRING=user32;gdi32")
|
||
|
if(HAVE_WIN32UI)
|
||
|
set(__libs "user32" "gdi32")
|
||
|
if(OpenCV_ARCH STREQUAL "ARM64")
|
||
|
list(APPEND __libs "comdlg32" "advapi32")
|
||
|
endif()
|
||
|
ocv_add_external_target(win32ui "" "${__libs}" "HAVE_WIN32UI")
|
||
|
endif()
|
||
|
endif()
|