Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What to do without CMakeLists.txt in GLFW #41

Open
eightmusic opened this issue May 9, 2023 · 1 comment
Open

What to do without CMakeLists.txt in GLFW #41

eightmusic opened this issue May 9, 2023 · 1 comment

Comments

@eightmusic
Copy link

Could NOT find GLFW (missing: GLFW_LIBRARIES)
CMake Error at external/CMakeLists.txt:8 (add_subdirectory):
The source directory

D:/test/saba-master/saba-master/external/glfw

does not contain a CMakeLists.txt file.

@benikabocha
Copy link
Owner

Try the following command.

git submodule init
git submodule update

or

# glfw build and install
git clone https://github.com/glfw/glfw.git
cd glfw
cmake -D CMAKE_INSTALL_PREFIX <glfw install dir> -S ./ -B ./build
cmake --build ./build --config Release --target ALL_BUILD
cmake --build ./build --config Release --target INSTALL

# saba build
cmake -D SABA_BULLET_ROOT=<bullet dir> -D SABA_GLFW_ROOT=<glfw dir> -S ./ -B ./build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants