Guest User

Untitled

a guest
Apr 13th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.48 KB | None | 0 0
  1. cmake_minimum_required(VERSION 2.8)
  2.  
  3.  
  4.  
  5. project (Viewer)
  6.  
  7.  
  8.  
  9. find_package (GLUT)
  10.  
  11. find_package (OpenGL)
  12.  
  13. if (OPENGL_FOUND)
  14.  
  15. MESSAGE (STATUS "Found OpenGL")
  16.  
  17. include_directories(${OPENGL_INCLUDE_DIR})
  18.  
  19. link_libraries(${OPENGL_LIBRARY})
  20.  
  21. endif (OPENGL_FOUND)
  22.  
  23. if (GLUT_FOUND)
  24.  
  25. MESSAGE (STATUS "Found GLUT")
  26.  
  27. include_directories(${GLUT_INCLUDE_DIR})
  28.  
  29. link_libraries(${GLUT_LIBRARY})
  30.  
  31. endif (GLUT_FOUND)
  32.  
  33.  
  34.  
  35.  
  36.  
  37. add_executable (Viewer MainWindow.cpp Main.cpp)
Add Comment
Please, Sign In to add comment