CMakeLists.txt 402 B

123456789101112131415161718
  1. project("sudoku")
  2. cmake_minimum_required(VERSION 2.8)
  3. file(GLOB SOURCES src/*.cpp src/*.hpp)
  4. add_executable(sudoku ${SOURCES})
  5. find_package(OpenGL REQUIRED)
  6. find_package(GLUT REQUIRED)
  7. include_directories( ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS} )
  8. target_link_libraries(sudoku ${OPENGL_LIBRARIES} ${GLUT_LIBRARY})
  9. # link the libraries to the executable
  10. #target_link_libraries (OpenGL test)