What files belong to the build target in a managed CDT build?

In a managed CDT manager, how are individual files assigned to create configurations?

In particular, how can I:

  • indicate that configuration A should build and link sources from folders A and B, while configuration B should use folders A and C,
  • include sources (not headers) from the referenced project (or just any external source files?) that will also be created and linked as part of this project?
+2
c ++ eclipse eclipse-cdt
source share
1 answer
  • 1st paragraph , assuming there are 3 folders A, B and C containing .cpp files, try the following:
    select folder C in the "project explorer" panel, right-click> exclude from build ...> check configuration A> ok
    select folder B, right-click> exclude from assembly ...> check configuration B> ok
    Thus, configuration A will ignore .cpp files from folder C, and configuration B will ignore folder B.
  • 2nd point : perhaps you could use the import> general> file system to import the source from an external folder into your project?
+2
source share

All Articles