While importing tinyply to a CMake project through FetchContent in such a way,
FetchContent_Declare(tinyply
GIT_REPOSITORY https://github.com/ddiakopoulos/tinyply.git
GIT_TAG 2.3.4
)
FetchContent_MakeAvailable(tinyply)
The header tinyply.h is not found by the compiler, as if the source subdirectory was not added to include path.
The workaround I am currently using is adding the include path by hand thus:
target_include_directories(${MY_TARGET} PRIVATE "${tinyply_SOURCE_DIR}/source")