akwk/zadanie-2/CMakeLists.txt
Władysław Kuczerenko bc5d7ec032 Init commit
2024-05-03 00:12:36 +02:00

22 lines
626 B
CMake

cmake_minimum_required(VERSION 3.26)
project(zadanie_2)
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_2 main.cpp shader.h shader.cpp)
# Link libraries
target_link_libraries(zadanie_2 OpenGL::GL glfw glm::glm)
# Link GLEW library directly
target_link_libraries(zadanie_2 /usr/local/Cellar/glew/2.2.0_1/lib/libGLEW.dylib)