Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 2.8)
- project (Viewer)
- find_package (GLUT)
- find_package (OpenGL)
- if (OPENGL_FOUND)
- MESSAGE (STATUS "Found OpenGL")
- include_directories(${OPENGL_INCLUDE_DIR})
- link_libraries(${OPENGL_LIBRARY})
- endif (OPENGL_FOUND)
- if (GLUT_FOUND)
- MESSAGE (STATUS "Found GLUT")
- include_directories(${GLUT_INCLUDE_DIR})
- link_libraries(${GLUT_LIBRARY})
- endif (GLUT_FOUND)
- add_executable (Viewer MainWindow.cpp Main.cpp)
Add Comment
Please, Sign In to add comment