Relative Content

Tag Archive for c++cmakeglfwglew

Cmake Nested Projects Static Linking Problem with glew32s.lib and glfw3.lib

I am developing a library to easily create an OpenGL window context and display an image on it. I have two CMakeLists.txt files. The first one (top project) is for the .exe file, and the second one (sub project) is for the shared or static library file. I know I can bind two CMakeLists.txt files via the add_subdirectory() command and, by doing that, link the sub project’s output (shared or static lib) to the top-level project.