Skip to content

Instantly share code, notes, and snippets.

@imjuniper
Last active February 13, 2023 01:22
Show Gist options
  • Select an option

  • Save imjuniper/cada276e002cafcf28da1f94645bc684 to your computer and use it in GitHub Desktop.

Select an option

Save imjuniper/cada276e002cafcf28da1f94645bc684 to your computer and use it in GitHub Desktop.
CMakeLists for GLEW and GLFW on macOS
cmake_minimum_required(VERSION 3.24)
project(opengl)
set(CMAKE_CXX_STANDARD 17)
set(SOURCE_FILES src/Application.cpp)
find_package(GLEW REQUIRED)
find_package(GLFW3 REQUIRED)
add_executable(opengl ${SOURCE_FILES})
target_link_libraries(opengl GLEW::GLEW glfw)
@imjuniper
Copy link
Author

Updated with GLEW instead of OpenGL. Note that both GLEW and GLFW are installed using Homebrew.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment