[cmake-developers] [CMake 0014008]: Eclipse generator - grouping header files with non-standard suffix in the 'Header Files' folder

Mantis Bug Tracker mantis at public.kitware.com
Wed Mar 13 05:37:02 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14008 
====================================================================== 
Reported By:                Magnus
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14008
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-03-13 05:37 EDT
Last Modified:              2013-03-13 05:37 EDT
====================================================================== 
Summary:                    Eclipse generator - grouping header files with
non-standard suffix in the 'Header Files' folder
Description: 
The Eclipse project generator creates a number of (virtual) folders created for
each target.  The targets C/C++ files are put into 'Source Files' and header
files with standard suffixes, e.g. .h, are put into 'Header Files'.  This works
as expected.

It's not uncommon in the wild to use different suffixes for automatically
generated files, e.g. in a project I work on all auto-generated headers have a
.inc suffix.  These files do not get added to the 'Header Files' folder, instead
they end up on the target's top level.

Steps to Reproduce: 
Create a CMakeLists.txt with the following contents:

cmake_minimum_required(VERSION 2.8)
project( test )

enable_language( C )

add_executable( silly
    silly.c
    silly.h
    non-standard.inc
    )

Generate an Eclipse project and load it.  You'll see something like what's shown
in the attached picture.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-03-13 05:37 Magnus         New Issue                                    
2013-03-13 05:37 Magnus         File Added: non-standard-header.png             
      
======================================================================




More information about the cmake-developers mailing list