wxwidgets_opencv_example/CMakeLists.txt

12 lines
434 B
CMake
Raw Permalink Normal View History

2023-08-05 18:02:02 +00:00
cmake_minimum_required(VERSION 3.20)
project(wxTest)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake-modules)
find_package(OpenCV HINTS /usr/local/opt/opencv /usr/local/Cellar/opencv REQUIRED)
find_package(wxWidgets REQUIRED gl core base OPTIONAL_COMPONENTS net)
include(${wxWidgets_USE_FILE})
add_executable(wxTest main.cpp)
target_link_libraries(wxTest PRIVATE ${wxWidgets_LIBRARIES} ${OpenCV_LIBS})