Reordering dependant on sndlib modules

Properly include and reuse produced static lib in other components.
This commit is contained in:
Azamat H. Hackimov 2024-05-20 10:44:34 +03:00
parent 974c703906
commit 3bd07d1f7e
12 changed files with 24 additions and 1 deletions

View File

@ -3,3 +3,6 @@ set(CPPS
musicapi.cpp)
add_library(d3music STATIC ${HEADERS} ${CPPS})
target_link_libraries(d3music PRIVATE
music
)

View File

@ -24,4 +24,6 @@ set(CPPS
add_library(manage STATIC ${HEADERS} ${CPPS})
target_link_libraries(manage PRIVATE
cfile
sndlib
stream_audio
)

View File

@ -8,4 +8,10 @@ set(CPPS
add_library(music STATIC ${HEADERS} ${CPPS})
target_link_libraries(music
cfile
stream_audio
)
target_include_directories(music PUBLIC
$<BUILD_INTERFACE:
${PROJECT_SOURCE_DIR}/music
>
)

View File

@ -6,3 +6,6 @@ set(CPPS
physics.cpp)
add_library(physics STATIC ${HEADERS} ${CPPS})
target_link_libraries(physics PRIVATE
sndlib
)

View File

@ -19,6 +19,7 @@ set(CPPS
add_library(sndlib STATIC ${CPPS})
target_link_libraries(sndlib PRIVATE
cfile
stream_audio
)
target_include_directories(sndlib PUBLIC
$<BUILD_INTERFACE:

View File

@ -4,4 +4,12 @@ set(CPPS
streamaudio.cpp)
add_library(stream_audio STATIC ${HEADERS} ${CPPS})
target_link_libraries(stream_audio libacm)
target_link_libraries(stream_audio
libacm
sndlib
)
target_include_directories(stream_audio PUBLIC
$<BUILD_INTERFACE:
${PROJECT_SOURCE_DIR}/stream_audio
>
)