Skip to main content

File Extensions

This object specifies the file extensions for source, header, and module files.

Here is a minimal example:

import getDirName from 'cpp.js/src/utils/getDirName.js';

export default {
ext: {
source: ['myext' 'cpp'],
},
paths: {
project: getDirName(import.meta.url),
},
};

Attributes

NameTypeDefaultDescription
headerarray['h', 'hpp', 'hxx', 'hh']Header file extensions
sourcearray['c', 'cpp', 'cxx', 'cc']Source file extensions
modulearray['i']Module file extensions