Building ITK with BUILD_SHARED_LIBS flag ON

I have installed binaries in custom path, not in usr/local.
I want to have built binaries, which can be used in other linux machines either(not only for mine).
I have added only BUILD_SHARED_LIBS to ON in cmake gui. In contrast of this static libraries worked fine.