mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 07:39:42 +02:00
Modules expose transitive link dependencies...
... which will simplify CMakeLists when modules depend on other modules
This commit is contained in:
parent
ca7d96f20a
commit
ee344aa6c9
@ -229,7 +229,7 @@ function( audacity_module NAME SOURCES IMPORT_TARGETS
|
||||
)
|
||||
|
||||
# compute LIBRARIES
|
||||
set( LIBRARIES PRIVATE )
|
||||
set( LIBRARIES )
|
||||
foreach( IMPORT ${IMPORT_TARGETS} )
|
||||
list( APPEND LIBRARIES "${IMPORT}" )
|
||||
endforeach()
|
||||
@ -243,12 +243,11 @@ function( audacity_module NAME SOURCES IMPORT_TARGETS
|
||||
)
|
||||
|
||||
# list( TRANSFORM SOURCES PREPEND "${CMAKE_CURRENT_SOURCE_DIR}/" )
|
||||
list( PREPEND SOURCES "PRIVATE" )
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${ADDITIONAL_DEFINES} )
|
||||
target_include_directories( ${TARGET} PUBLIC ${TARGET_ROOT} )
|
||||
target_link_options( ${TARGET} PRIVATE ${LOPTS} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
target_link_libraries( ${TARGET} PUBLIC ${LIBRARIES} )
|
||||
endfunction()
|
||||
|
Loading…
x
Reference in New Issue
Block a user