# Separating \*.cpp and \*.h files when generating

**URL:** <https://forums.visual-paradigm.com/t/separating-cpp-and-h-files-when-generating/12112>\
**Category:** General Questions/Discussions\
**Created:** [April 20, 2012, 8:03pm UTC](https://forums.visual-paradigm.com/t/separating-cpp-and-h-files-when-generating/12112 "2012-04-20T20:03:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thermopyle](https://avatars.discourse-cdn.com/v2/letter/t/8e7dd6/32.png) [@thermopyle](https://forums.visual-paradigm.com/u/thermopyle)\
**Post date:** [April 23, 2012, 10:54am UTC](https://forums.visual-paradigm.com/t/separating-cpp-and-h-files-when-generating/12112/1 "2012-04-23T10:54:53Z")

</div>

Hi.

Is it possible to separate \*.cpp and \*.h files when generating C++ code and place \*.cpp files in one directory and \*.h files in another directory?

```
 Regards, Micke.
```

---

<div class="post-metadata">

**Author:** ![Rain](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/rain/32/2309_2.png) [@Rain](https://forums.visual-paradigm.com/u/Rain)\
**Post date:** [May 9, 2012, 1:25pm UTC](https://forums.visual-paradigm.com/t/separating-cpp-and-h-files-when-generating/12112/2 "2012-05-09T13:25:29Z")

</div>

Hello Micke,

For the moment we do not support this. But why you want to do in this way?

Best regards,  
Rain Wong

---

<div class="post-metadata">

**Author:** ![Anonymous](https://avatars.discourse-cdn.com/v2/letter/a/8491ac/32.png) [@Anonymous](https://forums.visual-paradigm.com/u/Anonymous)\
**Post date:** [May 10, 2012, 10:20am UTC](https://forums.visual-paradigm.com/t/separating-cpp-and-h-files-when-generating/12112/3 "2012-05-10T10:20:24Z")

</div>

Because the code base I’m working with at the moment is organized in this way; headers are placed in a separate directory to be exported to other projects, source files (\*.cpp) are kept in another directory separate from the header file directory.
