Add exported CMake variable so that binaries can be built individually.