Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # CMake minimun version
- cmake_minimum_required(VERSION 2.8)
- # executable name
- set(TARGET_NAME debugOpenCL)
- # solution name
- project(${TARGET_NAME})
- # executable
- add_executable(${TARGET_NAME} main.cpp)
- # find OpenCV
- find_package(OpenCV REQUIRED)
- if(MSVC)
- add_definitions("/wd4265 /wd4266 /wd4350 /wd4365 /wd4435 /wd4514 /wd4625 /wd4626 /wd4640 /wd4668 /wd4710 /wd4819 /wd4820 /wd4946")
- endif(MSVC)
- # Set path and libraries OpenCV
- if(OpenCV_FOUND)
- # include path
- include_directories(${OpenCV_INCLUDE_DIRS})
- # link library path
- target_link_libraries(${TARGET_NAME} ${OpenCV_LIBS})
- endif(OpenCV_FOUND)
Add Comment
Please, Sign In to add comment