Adding included libries to scons

Member Site Forums Rosetta 3 Rosetta 3 – Build/Install Adding included libries to scons

Viewing 1 reply thread
  • Author
    Posts
    • #2369
      Anonymous

        Hello.

        I am running a pilot app which uses a test class that requires the cxx test header. I was able to include the path to the compiler by using the -I parameter. However when I try to use scons to build the pilot app executable I don’t know how to get scons to add in the extra -I parameter.

        Thank you.

      • #11406
        Anonymous

          Your comment strongly implies you are a developer, as users don’t get the pilot_apps contents. This is more or less “internal” and should go on the developer mailing list (or better yet, you should put it in the documentation once you’ve learned the answer [or point me to where you looked and didn’t find it so I can fix it]). If you’re not a developer – wow, how did you get this far!?

          If you’ve added a pilot app, you modified pilot_apps.src.settings. In a list at the bottom of that file is the list of libraries linked against the projects in pilot_apps (devel, protocols.xxx, core.5-1, numeric, utility, etc….). Adding CXXtest to that is the way to get SCons to link it. I have no idea if that will work, by the way — we don’t support linking the test code against a pilot app, although you can and should write CXXtest unit tests inside the test folder (which builds with cat=test).

        • #11407
          Anonymous

            Thank you for your answer and sorry for misplacing my question.

        Viewing 1 reply thread
        • You must be logged in to reply to this topic.