Use PROJECT_SOURCE_DIR in CMake files instead of CMAKE_SOURCE_DIR.