Skip to content
Snippets Groups Projects
Commit 2a79326f authored by Mark Palange (Mani)'s avatar Mark Palange (Mani)
Browse files

Removed tabs. Fixed errant 'else(APPLE)'

parent 382174ce
No related branches found
No related tags found
No related merge requests found
...@@ -3,29 +3,29 @@ ...@@ -3,29 +3,29 @@
# search_dirs: a list of dirs to search for the dependencies # search_dirs: a list of dirs to search for the dependencies
# dst_path: path to copy deps to, relative to the output location of the target_exe # dst_path: path to copy deps to, relative to the output location of the target_exe
macro(ll_deploy_sharedlibs_command target_exe search_dirs dst_path) macro(ll_deploy_sharedlibs_command target_exe search_dirs dst_path)
get_target_property(OUTPUT_LOCATION ${target_exe} LOCATION) get_target_property(OUTPUT_LOCATION ${target_exe} LOCATION)
if(DARWIN) if(DARWIN)
get_target_property(IS_BUNDLE ${target_exe} MACOSX_BUNDLE) get_target_property(IS_BUNDLE ${target_exe} MACOSX_BUNDLE)
if(IS_BUNDLE) if(IS_BUNDLE)
get_filename_component(TARGET_FILE ${OUTPUT_LOCATION} NAME) get_filename_component(TARGET_FILE ${OUTPUT_LOCATION} NAME)
set(OUTPUT_PATH ${OUTPUT_LOCATION}.app/Contents/MacOS) set(OUTPUT_PATH ${OUTPUT_LOCATION}.app/Contents/MacOS)
set(OUTPUT_LOCATION ${OUTPUT_PATH}/${TARGET_FILE}) set(OUTPUT_LOCATION ${OUTPUT_PATH}/${TARGET_FILE})
endif(IS_BUNDLE) endif(IS_BUNDLE)
else(APPLE) else(DARWIN)
message(FATAL_ERROR "Only darwin currently supported!") message(FATAL_ERROR "Only darwin currently supported!")
endif(DARWIN) endif(DARWIN)
add_custom_command( add_custom_command(
TARGET ${target_exe} POST_BUILD TARGET ${target_exe} POST_BUILD
COMMAND ${CMAKE_COMMAND} COMMAND ${CMAKE_COMMAND}
ARGS ARGS
"-DBIN_NAME=\"${OUTPUT_LOCATION}\"" "-DBIN_NAME=\"${OUTPUT_LOCATION}\""
"-DSEARCH_DIRS=\"${search_dirs}\"" "-DSEARCH_DIRS=\"${search_dirs}\""
"-DDST_PATH=\"${OUTPUT_PATH}/${dst_path}\"" "-DDST_PATH=\"${OUTPUT_PATH}/${dst_path}\""
"-P" "-P"
"${CMAKE_SOURCE_DIR}/cmake/DeploySharedLibs.cmake" "${CMAKE_SOURCE_DIR}/cmake/DeploySharedLibs.cmake"
) )
endmacro(ll_deploy_sharedlibs_command) endmacro(ll_deploy_sharedlibs_command)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment