carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/tasks/cdt_t_set_src_fold.htm
author cawthron
Fri, 04 Dec 2009 10:01:33 -0600
changeset 5 684bf18fdedf
permissions -rw-r--r--
add files for RCL_2_2

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html lang="en">
<head>
  <meta content="en-us" http-equiv="Content-Language">
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  <title>Setting Source Folders</title>
  <link href="../help.css" type="text/css" rel="stylesheet">
</head>
<body>
<h1>Setting Source Folders</h1>
<p><i>Note that source folders can only be currently used with Standard
Make projects. Managed Make projects treat the entire project as a
source folder.</i></p>
<p>Source folders are a way to cut down on a project’s indexing scope.
You can mark the folders that are part of your day to day work or part
of a subsystem that you work on. All files inside source folders will
be indexed and are, thus, searchable. Note that any files pulled in by
a file inside a source folder will also be indexed. </p>
<p><img alt="Set source folder" src="../images/cdt_set_src_folder.png"></p>
<p>To setup source folders:
</p>
<ol>
  <li>Right click on the project and select <b>Properties &gt; C/C++
Project Paths</b></li>
  <li>Click on the <b>Source</b> tab<br>
By default the entire project is a source folder, which means
everything will be indexed. This is reasonable for smaller projects but
definitely not recommended for large projects. </li>
  <li>Click <b>Add folder</b> to add the folders. A dialog will
explain exclusion filters have been added to nesting folders. You will
see that the folder you added will be excluded from the project folder
(in order to avoid including a folder twice). Repeat until all the
folders have been added. <br>
    <b>Note: </b>Don't forget to remove the project folder (which
appears by default) otherwise everything will be indexed.</li>
  <li>Click <b>OK</b>. Your view in C/C++ projects will now change.
You should see your source folders designated with a "C" and all other
source and header files icons that are in a non-source folder will
change to a "hollow" C or H.</li>
</ol>
<p><img height="21" width="143" alt="Related concepts"
 src="../images/ngconcepts.gif" border="0">
<br>
<a href="../concepts/cdt_c_search.htm">C/C++ search</a><br>
<a href="../concepts/cdt_c_indexer.htm">C/C++ Indexer</a><br>
<a href="../concepts/cdt_c_indexer_open_close.htm">C/C++ Indexer
Opening or Closing a project</a><br>
<a href="../concepts/cdt_c_indexer_prog_bar.htm">C/C++ Indexer Progress
Bar</a></p>
<p><img height="21" width="143" alt="Related tasks"
 src="../images/ngtasks.gif" border="0"><br>
<a href="../tasks/cdt_t_sel_search.htm">Selection Searching for C/C++
elements</a><br>
</p>
<p><img height="21" width="143" alt="Related reference"
 src="../images/ngref.gif" border="0">
<br>
<a href="../reference/cdt_u_search.htm">C/C++ search page, Search
dialog box</a>
<br>
<a href="../reference/cdt_u_prop_general_idx.htm">C/C++ Project Properties, Indexer</a>
</p>
<p>&nbsp;</p>
<img alt="IBM Copyright Statement" src="../images/ng00_07.gif">
</body>
</html>