Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
[submodule "third_party/glm"]
path = third_party/glm
url = https://github.com/g-truc/glm
[submodule "third_party/soloud"]
path = third_party/soloud
url = https://github.com/jarikomppa/soloud
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ add_subdirectory(third_party/glm)

add_subdirectory(third_party/stb)

set(SDL2_LIBRARY SDL2)
set(SDL2_INCLUDE_DIR SDL2)
add_subdirectory(third_party/soloud/contrib)
unset(SDL2_LIBRARY)
unset(SDL2_INCLUDE_DIR)
target_include_directories(
soloud PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/third_party/soloud/include>
)

set_target_properties(
bgfx bimg bx chipmunk_static
PROPERTIES POSITION_INDEPENDENT_CODE ON
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ target_include_directories(kaacore PUBLIC

target_link_libraries(
kaacore PUBLIC
SDL2 SDL_mixer bgfx chipmunk_static glm $<TARGET_OBJECTS:SDL_mixer>
SDL2 SDL_mixer bgfx chipmunk_static glm soloud $<TARGET_OBJECTS:SDL_mixer>
stb $<TARGET_OBJECTS:stb>
)

Expand Down
1 change: 1 addition & 0 deletions third_party/soloud
Submodule soloud added at 17c9fd