if (CMAKE_SYSTEM_NAME MATCHES "Windows") message(STATUS "Running on Windows") list(APPEND CMAKE_PREFIX_PATH ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/opencv/build/x64/vc15/lib) file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/opencv/build/x64/vc15/bin/opencv_world455.dll DESTINATION ${EXECUTABLE_OUTPUT_PATH}) endif() find_package(OpenCV REQUIRED) include_directories(${OpenCV_INCLUDE_DIRS}) add_executable(EpicEyeCaptureOpencv main.cpp) target_link_libraries( EpicEyeCaptureOpencv PUBLIC EpicEyeSDK ${OpenCV_LIBS} )