File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,19 @@ target_link_libraries(${target}
155155 INTERFACE
156156)
157157
158+ #
159+ # Post build script
160+ #
161+
162+ # Register Library
163+ if (UNIX )
164+ add_custom_command (
165+ TARGET ${target}
166+ POST_BUILD
167+ COMMAND ldconfig ${CMAKE_BINARY_DIR} /distributable
168+ )
169+ endif ()
170+
158171#
159172# Deployment
160173#
@@ -166,3 +179,10 @@ install(TARGETS ${target}
166179 LIBRARY DESTINATION ${INSTALL_SHARED} COMPONENT runtime
167180 ARCHIVE DESTINATION ${INSTALL_LIB} COMPONENT dev
168181)
182+
183+ # Register Library
184+ if (UNIX )
185+ install (CODE "execute_process(COMMAND ldconfig ${CMAKE_INSTALL_PREFIX} /${INSTALL_BIN} )" )
186+ install (CODE "execute_process(COMMAND ldconfig ${CMAKE_INSTALL_PREFIX} /${INSTALL_SHARED} )" )
187+ install (CODE "execute_process(COMMAND ldconfig ${CMAKE_INSTALL_PREFIX} /${INSTALL_LIB} )" )
188+ endif ()
You can’t perform that action at this time.
0 commit comments