use CMAKE_CURRENT_SOURCE_DIR variable for build

Using CMAKE_CURRENT_SOURCE_DIR instead of CMAKE_SOURCE_DIR allows the
repository to be used as a submodule.