title: CMake Error at CMakeLists.txt:7: Parse error. Function missing ending ")". End of file reached
body: <pre><code>cmake_minimum_required(VERSION 3.0.0)
  project(opencvtest VERSION 0.1.0)
  
  include(CTest)
  enable_testing()
  
  set(OpenCV_DIR C:\Users\Sayar\opencv\build\)
  
  find_package( OpenCV REQUIRED )
  include_directories( ${OpenCV_INCLUDE_DIRS} )
  
  add_executable(opencvtest main.cpp)
  
  target_link_libraries( opencvtest ${OpenCV_LIBS} )
  
  set(CPACK_PROJECT_NAME ${PROJECT_NAME})
  set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
  include(CPack)
  </code></pre>
  <p>This is my code for CMakeLists.txt. Can someone tell me where I am going wrong? Where is the missing &quot;)&quot;?</p>