you mean you don't want to put the .h files in the folder where also your cpp files are, so you don't have to define like this:
?
You can pass gcc the parameter -i/path/to/different/header/directory, gcc will look in that directory then to find header files.