Page 1 of 1

Basic Cmake file

Posted: Tue Oct 15, 2013 5:43 am
by s1890409
Hi,

After completing the majority of tutorials (which were very informative), I'd like to start building my own model. Now I wonder how to adapt the basic Cmake file section "Setup Headers to Include", to match my own project, publications, etc.
For a view of the basic cmake file, see: (http://simtk-confluence.stanford.edu:80 ... nvironment)

Best regards,
Koen Peters

Re: Basic Cmake file

Posted: Thu Oct 31, 2013 12:23 pm
by aymanh
Hi Koen,

Did you get around this problem yet? I'm not sure what you're asking, can you explain a little more?. The section of the CMake file to "Setup headers to include" can be adapted by adding extra directories from your environment so that more headers can be located by CMake and later by the build system. Publications is a totally different story since they're included as text in the model file and so need to be modified by code and not during the CMake process.

Hope this helps, and please let us know if you continue to have questions.

Best regards,
-Ayman

Re: Basic Cmake file

Posted: Fri Nov 01, 2013 3:23 am
by s1890409
Hello Ayman,

Thank you for pointing out publications can be set using code, I was under the assumption they were part of the header. Now I can adapt the project name, target and source in the Cmake file and evertyhing else in my C++ code.

Cheers!
Koen