src/CMakeLists.txt
branchv_0
changeset 20 e67584a06be6
parent 16 3b197bf7a231
child 28 8f1da1ce3ca5
--- a/src/CMakeLists.txt	Wed Oct 28 16:30:01 2020 +0100
+++ b/src/CMakeLists.txt	Wed Oct 28 16:30:58 2020 +0100
@@ -14,6 +14,7 @@
 # along with this program. If not, see <http://www.gnu.org/licenses/>.
 
 set(EXECUTABLE_FILE "relpipe-in-yamltable")
+set(EXECUTABLE_FILE_JSON "relpipe-in-jsontable")
 
 # Relpipe libraries:
 INCLUDE(FindPkgConfig)
@@ -32,6 +33,8 @@
 	relpipe-in-xmltable.cpp
 )
 
+ADD_CUSTOM_TARGET(in_mode_symlink ALL COMMAND ${CMAKE_COMMAND} -E create_symlink ${EXECUTABLE_FILE} ${EXECUTABLE_FILE_JSON})
+
 # Link libraries:
 target_link_libraries(${EXECUTABLE_FILE} ${RELPIPE_LIBS_LIBRARIES})
 set_property(TARGET ${EXECUTABLE_FILE} PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE)