22 lines
626 B
CMake
22 lines
626 B
CMake
cmake_minimum_required(VERSION 3.26)
|
|
project(zadanie_1)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
# Find necessary packages
|
|
find_package(OpenGL REQUIRED)
|
|
find_package(glfw3 REQUIRED)
|
|
find_package(glm REQUIRED)
|
|
|
|
# Include directories for the found packages
|
|
include_directories(${OPENGL_INCLUDE_DIRS} ${GLM_INCLUDE_DIRS} /usr/local/Cellar/glew/2.2.0_1/include)
|
|
|
|
# Add executable and link libraries
|
|
add_executable(zadanie_1 main.cpp shader.h shader.cpp)
|
|
|
|
# Link libraries
|
|
target_link_libraries(zadanie_1 OpenGL::GL glfw glm::glm)
|
|
|
|
# Link GLEW library directly
|
|
target_link_libraries(zadanie_1 /usr/local/Cellar/glew/2.2.0_1/lib/libGLEW.dylib)
|