I wonder if there is a possibility of download from Github only one directory from one repo using ExternalProject_Add?
I need to use glm
library in my project and I wonder if it is good idea, because it takes around 70MB. The directory that I need has 11MB, so it is big difference in memory and downloading time.
Here is link for glm github repo: https://github.com/g-truc/glm, but I don't think it is important here.
I want download only glm directory from that repo.
Do you have any ideas?
Here is my CMakeLists.txt that I add to main project:
include(ExternalProject)
ExternalProject_Add(glm
GIT_REPOSITORY https://github.com/g-truc/glm
PREFIX "${CMAKE_CURRENT_BINARY_DIR}"
# Disable configure, build and install steps
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
LOG_DOWNLOAD ON
)
# Specify include dir
ExternalProject_Get_Property(glm source_dir)
set(GLM_INCLUDE_DIRS ${source_dir}/ PARENT_SCOPE)
I tried to change url to https://github.com/g-truc/glm/tree/master/glm, but it doesn't work.