mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 12:40:05 +08:00
a2bc075924
* apps: add Win32 friendly opencv_version app Improve experience of launching app from explorer: - application just flash (open/close) the console window Suggested Win32 application flavor additionally shows MessageBox and waits for User interaction. * cmake: added unified application creation function
6 lines
266 B
CMake
6 lines
266 B
CMake
ocv_add_application(opencv_version MODULES opencv_core SRCS opencv_version.cpp)
|
|
if(WIN32)
|
|
ocv_add_application(opencv_version_win32 MODULES opencv_core SRCS opencv_version.cpp)
|
|
target_compile_definitions(opencv_version_win32 PRIVATE "OPENCV_WIN32_API=1")
|
|
endif()
|