summaryrefslogtreecommitdiffstats
path: root/functions.cmake
diff options
context:
space:
mode:
authorHåkon Hallingstad <hakon@yahooinc.com>2022-05-18 16:20:56 +0200
committerHåkon Hallingstad <hakon@yahooinc.com>2022-05-18 16:20:56 +0200
commite665303337223103e5f71a24c2dab71cac7b0a33 (patch)
treea90cb3e37da06142b70e9b1a72bb24fb99e727c1 /functions.cmake
parentf05f60b1ec40be6f3e60349d65da60bc41555db3 (diff)
Add CMake function to install components symlink to fat jar
Diffstat (limited to 'functions.cmake')
-rw-r--r--functions.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/functions.cmake b/functions.cmake
index b8ac3497ff2..48eb3a9f105 100644
--- a/functions.cmake
+++ b/functions.cmake
@@ -691,6 +691,21 @@ function(install_configserver_component NAME)
install_symlink(lib/jars/${NAME}-${PARAM_CLASSIFIER}.jar conf/configserver-app/components/${NAME}.jar)
endfunction()
+function(install_components_symlink APPNAME NAME)
+ cmake_parse_arguments(
+ PARAM
+ ""
+ "CLASSIFIER"
+ ""
+ ${ARGN}
+ )
+ if(NOT PARAM_CLASSIFIER)
+ SET(PARAM_CLASSIFIER "jar-with-dependencies")
+ endif()
+ install(DIRECTORY DESTINATION conf/${APPNAME}/components)
+ install_symlink(lib/jars/${NAME}-${PARAM_CLASSIFIER}.jar conf/${APPNAME}/components/${NAME}.jar)
+endfunction()
+
function(add_extra_projects)
if(EXTRA_PROJECTS)
foreach(PROJECT ${EXTRA_PROJECTS})