Basic Cmake file

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Koen Peters
Posts: 7
Joined: Thu Sep 26, 2013 2:10 am

Basic Cmake file

Post by Koen Peters » Tue Oct 15, 2013 5:43 am

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

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

Re: Basic Cmake file

Post by Ayman Habib » Thu Oct 31, 2013 12:23 pm

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

User avatar
Koen Peters
Posts: 7
Joined: Thu Sep 26, 2013 2:10 am

Re: Basic Cmake file

Post by Koen Peters » Fri Nov 01, 2013 3:23 am

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

POST REPLY