Commit e40baad3 authored by Yung-Lin Huang's avatar Yung-Lin Huang

cmake added a link to exe in main directory

parent 7781530a
......@@ -6,3 +6,17 @@ project(meshalyzer
)
add_subdirectory(src)
if(APPLE)
set(MESHALYZER_EXE "meshalyzer.app/Contents/MacOS/meshalyzer")
elseif(UNIX)
set(MESHALYZER_EXE "meshalyzer")
endif()
add_custom_target(link_exe ALL
COMMAND ln -sf ${CMAKE_BINARY_DIR}/src/${MESHALYZER_EXE} ${CMAKE_CURRENT_LIST_DIR}
COMMENT "Create link to meshalyzer executable"
VERBATIM
)
add_dependencies(link_exe meshalyzer)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment