1
0
Fork 0
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:
reuk 2020-09-21 16:39:26 +01:00
parent f5fb04a908
commit 71c650097e
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -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()