Build STP shared library using CMake.

Also use {ARCHIVE,RUNTIME}_OUTPUT_DIRECTORY properties to relocate build products rather than a custom target.