mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
Reordering dependant on sndlib modules
Properly include and reuse produced static lib in other components.
This commit is contained in:
parent
974c703906
commit
3bd07d1f7e
@ -3,3 +3,6 @@ set(CPPS
|
||||
musicapi.cpp)
|
||||
|
||||
add_library(d3music STATIC ${HEADERS} ${CPPS})
|
||||
target_link_libraries(d3music PRIVATE
|
||||
music
|
||||
)
|
||||
|
@ -24,4 +24,6 @@ set(CPPS
|
||||
add_library(manage STATIC ${HEADERS} ${CPPS})
|
||||
target_link_libraries(manage PRIVATE
|
||||
cfile
|
||||
sndlib
|
||||
stream_audio
|
||||
)
|
||||
|
@ -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
|
||||
>
|
||||
)
|
||||
|
@ -6,3 +6,6 @@ set(CPPS
|
||||
physics.cpp)
|
||||
|
||||
add_library(physics STATIC ${HEADERS} ${CPPS})
|
||||
target_link_libraries(physics PRIVATE
|
||||
sndlib
|
||||
)
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user