Guest User

Untitled

a guest
Mar 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. # CMake minimun version
  2. cmake_minimum_required(VERSION 2.8)
  3.  
  4. # executable name
  5. set(TARGET_NAME debugOpenCL)
  6.  
  7. # solution name
  8. project(${TARGET_NAME})
  9.  
  10. # executable
  11. add_executable(${TARGET_NAME} main.cpp)
  12.  
  13. # find OpenCV
  14. find_package(OpenCV REQUIRED)
  15.  
  16. if(MSVC)
  17. add_definitions("/wd4265 /wd4266 /wd4350 /wd4365 /wd4435 /wd4514 /wd4625 /wd4626 /wd4640 /wd4668 /wd4710 /wd4819 /wd4820 /wd4946")
  18. endif(MSVC)
  19.  
  20. # Set path and libraries OpenCV
  21. if(OpenCV_FOUND)
  22. # include path
  23. include_directories(${OpenCV_INCLUDE_DIRS})
  24.  
  25. # link library path
  26. target_link_libraries(${TARGET_NAME} ${OpenCV_LIBS})
  27. endif(OpenCV_FOUND)
Add Comment
Please, Sign In to add comment