Skip to content

Commit 7135abc

Browse files
committed
add signing command
1 parent a42c4eb commit 7135abc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

cmake/O2PhysicsAddWorkflow.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ function(o2physics_add_dpl_workflow baseTargetName)
5151
target_precompile_headers(${targetExeName} REUSE_FROM ${A_REUSE_FROM})
5252
endif()
5353

54+
if(APPLE)
55+
add_custom_command(
56+
TARGET ${targetExeName} POST_BUILD
57+
COMMAND codesign --sign - --verbose=4 --options=runtime --entitlements ${CMAKE_SOURCE_DIR}/entitlements.plist --deep --force $<TARGET_FILE:${targetExeName}>
58+
VERBATIM)
59+
endif()
60+
5461
set(jsonFile $<TARGET_FILE_BASE_NAME:${targetExeName}>.json)
5562

5663
add_custom_command(

0 commit comments

Comments
 (0)