Prabanjan,
Please look (carefully) at the chrono-projects repository at https://github.com/projectchrono/chrono-projects.
Note that this GitHub repository is different from the main Chrono repository.
chrono-projects contains a bunch of different codes and projects that depend on various modules of Chrono, all of which are set up exactly like the template_project that you’ve been looking at so far. In particular, it has several “configuration projects” which test precisely the kind of things you are having trouble with: setting up one of the Chrono demos as an “external project”. The main difference in any one of these programs in chrono-projects (compared to the corresponding demo in Chrono) is exactly the proper setting of the paths to Chrono and/or Chrono::Vehicle data.
You can clone the chrono-projects repository and look at demo_VEH_CityBus.cpp in that repository (not in the main repository!). Also look carefully at how the CMakeLists scripts are set up there to properly specify the paths to data directories.
--Radu
--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
projectchron...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/projectchrono/4086e530-d126-48e9-bfda-25e7eaa48632n%40googlegroups.com.