Add a CMake option not to use link(name), which simplies the linking situation sometimes
Add some getters/setters to SampleInstance