diff options
author | Arnstein Ressem <aressem@oath.com> | 2018-07-12 12:15:26 +0000 |
---|---|---|
committer | Arnstein Ressem <aressem@oath.com> | 2018-07-12 12:15:26 +0000 |
commit | 599bd706d36183230e144a7f365780c367145a6e (patch) | |
tree | 9cb2fe00f361b2f587f901514ab3823bd6be78f0 /functions.cmake | |
parent | f7b9c0261930c81132c66e3f174b8c468894b92f (diff) |
Make it possible to dynamically add submodules for extra projects.
Diffstat (limited to 'functions.cmake')
-rw-r--r-- | functions.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/functions.cmake b/functions.cmake index c0e07c1d362..bfff9d23ef6 100644 --- a/functions.cmake +++ b/functions.cmake @@ -547,3 +547,14 @@ endfunction() function(install_fat_java_artifact NAME) install(FILES "target/${NAME}-jar-with-dependencies.jar" DESTINATION lib/jars/) endfunction() + +function(add_auxilliary_modules) + if(EXTRA_PROJECTS) + foreach(PROJECT ${EXTRA_PROJECTS}) + get_filename_component(RELDIR ${PROJECT} NAME) + add_subdirectory(${PROJECT} ${RELDIR}) + endforeach() + endif() +endfunction() + + |