You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
558 B

5 years ago
  1. cmake_minimum_required (VERSION 3.10)
  2. project(3dbase)
  3. set(CMAKE_CXX_COMPILER "g++")
  4. set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
  5. set(CXX_FLAGS
  6. -g
  7. -std=c++11
  8. )
  9. find_package(Boost REQUIRED)
  10. find_package(glfw3 3.3 REQUIRED)
  11. find_package(OpenGL REQUIRED)
  12. include_directories(${Boost_INCLUDE_DIRS})
  13. include_directories(/usr/include/GL)
  14. set(GLFW_LIB
  15. glfw
  16. GLEW
  17. EGL
  18. freeimage
  19. ${OPENGL_gl_LIBRARY}
  20. ${OPENGL_glu_LIBRARY}
  21. )
  22. set(COM_SRC
  23. ../common/GlewOpenGL.cc
  24. )
  25. add_subdirectory(src/example)
  26. add_subdirectory(src/viewer)