Skip to content

Instantly share code, notes, and snippets.

@Atsumi3
Last active July 17, 2024 06:17
Show Gist options
  • Save Atsumi3/2d30ae20a3ba68dc39b7ee909bc167c6 to your computer and use it in GitHub Desktop.
Save Atsumi3/2d30ae20a3ba68dc39b7ee909bc167c6 to your computer and use it in GitHub Desktop.
Mac CLion で OpenGL したかった時のメモ

brew でこれしとく

brew install glfw3
brew install glew

CMakeLists.txt

プロジェクト名は Spessartine

cmake_minimum_required(VERSION 3.6)
project(Spessartine)

set(SOURCE_FILES main.cpp)

add_executable(Spessartine ${SOURCE_FILES})

find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)

include_directories( ${OPENGL_INCLUDE_DIRS}  ${GLUT_INCLUDE_DIRS} )

target_link_libraries(Spessartine ${OPENGL_LIBRARIES} ${GLUT_LIBRARY} )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment