aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/CreateSymlink.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/Modules/CreateSymlink.cmake b/cmake/Modules/CreateSymlink.cmake
new file mode 100644
index 0000000..574c443
--- /dev/null
+++ b/cmake/Modules/CreateSymlink.cmake
@@ -0,0 +1,10 @@
+#create logical links in order to keep legacy names of apps
+macro(CREATE_SYMLINK _source _dest)
+ set(source ${CMAKE_CURRENT_SOURCE_DIR}/${_source})
+ set(dest ${CMAKE_CURRENT_BINARY_DIR}/${_dest})
+ list(APPEND symlinks ${dest})
+ add_custom_command(
+ DEPENDS ${source} OUTPUT ${dest}
+ COMMAND ln -sf ${_source} ${_dest}
+ )
+endmacro(CREATE_SYMLINK)