Код: Выделить всё
build] LINK : fatal error LNK1104: cannot open file 'glfw.lib' [E:\Z_Dev\OpenGl\build\hello_window.vcxproj]
Я прикрепил изображение файлов моего проекта и адрес файла для LIB.
Вот мой файл CMake:
Код: Выделить всё
`cmake_minimum_required(VERSION 3.5)
project(hello_window VERSION 1.0.0)
add_executable(hello_window src/config.h src/main.cpp)
target_include_directories(hello_window PRIVATE dependencies)
target_link_libraries(hello_window glfw)
target_link_libraries(hello_window lib)
`
Код: Выделить всё
`#include "config.h"
int main() {
GLFWwindow* window;
if(!glfwInit()){
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78388373/lnk1104-cannot-open-file-glfw-lib[/url]