cmake_minimum_required (VERSION 3.10) project(3dbase) set(CMAKE_CXX_COMPILER "g++") set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) set(CXX_FLAGS -g -std=c++11 ) find_package(Boost REQUIRED) find_package(glfw3 3.3 REQUIRED) find_package(OpenGL REQUIRED) include_directories(${Boost_INCLUDE_DIRS}) include_directories(/usr/include/GL) set(GLFW_LIB glfw GLEW EGL freeimage ${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} ) set(COM_SRC ../common/GlewOpenGL.cc ) add_subdirectory(src/example) add_subdirectory(src/viewer)