I couldnt manage to find a way to import glfw library for CLion. I tried things but they didnt work as expected. I would appreciate any helps.
cmake_minimum_required(VERSION 3.29)
project(TestProj)
set(CMAKE_CXX_STANDARD 20)
add_executable(TestProj main.cpp
)
set(INCLUDE_DIR "${CMAKE_SOURCE_DIR}/dependencies/include")
set(LIBRARY_DIR "${CMAKE_SOURCE_DIR}/dependencies/lib")
include_directories(${INCLUDE_DIR})
link_directories(${LIBRARY_DIR})
target_link_libraries(TestProj glfw3)
Project structure
New contributor
Melih is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.