mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
CMake: Add support for the searchpaths module configuration option
This commit is contained in:
parent
f5fb04a908
commit
71c650097e
1 changed files with 9 additions and 0 deletions
|
|
@ -608,6 +608,15 @@ function(juce_add_module module_path)
|
|||
_juce_get_metadata("${metadata_dict}" dependencies module_dependencies)
|
||||
target_link_libraries(${module_name} INTERFACE ${module_dependencies})
|
||||
|
||||
_juce_get_metadata("${metadata_dict}" searchpaths module_searchpaths)
|
||||
|
||||
if(NOT module_searchpaths STREQUAL "")
|
||||
foreach(module_searchpath IN LISTS module_searchpaths)
|
||||
target_include_directories(${module_name}
|
||||
INTERFACE "${module_path}/${module_searchpath}")
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
if(JUCE_ARG_INSTALL_PATH)
|
||||
install(DIRECTORY "${module_path}" DESTINATION "${JUCE_ARG_INSTALL_PATH}")
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue