We have an external project we want to fetch using cmake using ExternalProject_add.
Let's say the external project has a structure:
External_Project
├── myClass.hpp
├── myClass.cpp
├── userOfClass.hpp
├── userOfClass.cpp
We're fetching External_Project using the following:
ExternalProject_add(get_rtpm
PREFIX "${EXTERNAL_PROJECT_PREFIX_DIRECTORY}/my_external_project"
SVN_REPOSITORY "${ZE_MIRROR}/${EXTERNAL_PROJECT_SVN_PATH}" --no-auth-cache
SVN_TRUST_CERT 1
SVN_USERNAME "zeUsername"
SVN_PASSWORD "zePassword"
UPDATE_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
BUILD_IN_SOURCE 1
INSTALL_COMMAND cmake -E copy_directory . ${FINAL_LOCATION_DIR}
)
After this we want to move the fetched external project to another location.
So we use
INSTALL_COMMAND cmake -E copy_directory . ${FINAL_LOCATION_DIR}<br>
as seen above.
The files in final location after the INSTALL_COMMAND ends up being:
Final_Location_Dir
├── External_Project
│ ├──myClass.hpp
│ ├── userOfClass.hpp
│ ├── userOfClass.cpp
"myClass.cpp" is missing. Why??
The command includes "copy_directory" but this just one file that's being left out.