Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Im-Rises committed Sep 25, 2023
1 parent b06b81b commit 356af39
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NBodySimulator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ if (WIN32)
target_link_libraries(${PROJECT_NAME} "${CMAKE_SOURCE_DIR}/dependencies/glfw/lib-mingw-w64/libglfw3.a")
endif ()
elseif (UNIX AND NOT APPLE)
message(STATUS "Configuring for Linux")
find_package(glfw3 3.3 REQUIRED)
find_package(Threads REQUIRED)
target_link_libraries(${PROJECT_NAME} glfw ${CMAKE_DL_LIBS})
target_link_libraries(${PROJECT_NAME} Threads::Threads)
elseif (APPLE)
message(STATUS "Configuring for MacOS")
find_package(glfw3 3.3 REQUIRED)
target_link_libraries(${PROJECT_NAME} glfw ${CMAKE_DL_LIBS})
else ()
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
This is a simple n-body simulator using bruteforce made with OpenGL in C++ with the help of the ImGui library for the
UI.

You can choose between different types of simulation:

- CPU
- GPU
- Barnes-Hut algorithm

The different algorithm still need some work to be optimized, but they are currently working.

You can also test the webgl version 🚀🚀 [here](https://im-rises.github.io/nbody-simulator-webgl/) 🚀🚀

The source code of the webgl version is available [here](https://github.com/Im-Rises/nbody-simulator-webgl).
Expand Down

0 comments on commit 356af39

Please sign in to comment.