-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Project folder restructuring - Overhaul CMake structure
- Loading branch information
1 parent
25d8fd4
commit a545815
Showing
196 changed files
with
1,132 additions
and
1,121 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
file(GLOB DEMO_SOURCES *.cpp) | ||
file(GLOB DEMO_HEADERS *.h) | ||
|
||
add_executable(fluid_sim_demo ${DEMO_SOURCES} ${DEMO_HEADERS}) | ||
|
||
target_link_libraries(fluid_sim_demo LINK_PUBLIC fluid_sim) | ||
target_link_libraries(fluid_sim_demo PUBLIC altlib) | ||
target_link_libraries(fluid_sim_demo PUBLIC altmath) | ||
|
||
# SDL2 | ||
if (MINGW) | ||
set(SDL2_PATH "C:\\Libraries\\SDL2-2.0.8-MinGW\\x86_64-w64-mingw32") | ||
endif(MINGW) | ||
find_package(SDL2 REQUIRED) | ||
target_include_directories(fluid_sim_demo PRIVATE ${SDL2_INCLUDE_DIR}) | ||
|
||
# GLAD | ||
set(GLAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/deps/glad) | ||
add_library(glad ${GLAD_DIR}/src/glad.c) | ||
target_include_directories(glad PUBLIC ${GLAD_DIR}/include) | ||
target_link_libraries(fluid_sim_demo PRIVATE glad ${CMAKE_DL_LIBS}) | ||
|
||
# IMGUI | ||
set(IMGUI_DIR ${CMAKE_CURRENT_SOURCE_DIR}/deps/imgui-1.65) | ||
add_library(imgui | ||
${IMGUI_DIR}/imgui.cpp | ||
${IMGUI_DIR}/imgui_draw.cpp | ||
${IMGUI_DIR}/imgui_widgets.cpp | ||
${IMGUI_DIR}/examples/imgui_impl_sdl.cpp | ||
${IMGUI_DIR}/examples/imgui_impl_opengl3.cpp) | ||
target_include_directories(imgui PUBLIC ${SDL2_INCLUDE_DIR}) | ||
target_include_directories(imgui PUBLIC ${IMGUI_DIR}) | ||
target_include_directories(imgui PUBLIC ${IMGUI_DIR}/examples) | ||
target_link_libraries(imgui PRIVATE glad) | ||
target_link_libraries(imgui PRIVATE SDL2) | ||
target_link_libraries(fluid_sim_demo PRIVATE imgui) | ||
|
||
# STB | ||
set(STB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/deps/stb) | ||
target_include_directories(fluid_sim_demo PRIVATE ${STB_DIR}) | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.