Skip to content

Commit

Permalink
Template update of ARM Serial Wire Debug (SWD) Analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus10110 committed Jul 9, 2018
1 parent f38a11a commit af26ee4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -29,3 +29,5 @@ if(MSVC)
else()
install(TARGETS swd_analyzer LIBRARY DESTINATION ".")
endif()

set_post_build_destination(swd_analyzer)
9 changes: 9 additions & 0 deletions cmake/ExternalAnalyzerSDK.cmake
Expand Up @@ -37,3 +37,12 @@ if(NOT TARGET Saleae::AnalyzerSDK)

endif()
endif()

# Optionally copy the compiled library after build to ${POST_BUILD_DESTINATION}, if POST_BUILD_DESTINATION is defined.
macro(set_post_build_destination target_name)
if(DEFINED POST_BUILD_DESTINATION)
add_custom_command(TARGET ${target_name}
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:${target_name}> ${POST_BUILD_DESTINATION})
endif()
endmacro()

0 comments on commit af26ee4

Please sign in to comment.