Last active
February 13, 2023 01:22
-
-
Save jakobbouchard/cada276e002cafcf28da1f94645bc684 to your computer and use it in GitHub Desktop.
CMakeLists for GLEW and GLFW on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated with GLEW instead of OpenGL. Note that both GLEW and GLFW are installed using Homebrew.