Adding Files to the Project - HiFiLES/HiFiLES-solver GitHub Wiki
The easiest way to add a file to the project is to leverage the current Automake configuration.
To add file newFile.cpp and the corresponding newInclude.h file do the following:
-
Place
newInclude.hin theincludefolder -
Place
newFile.cppin thesrcfolder and make sure that thenewFile.cppfile contains the statement
#include "../include/newInclude.h" -
Open the file
Makefile.amin theobjfolder -
In the list of source files add the line
../src/newFile.cpp \
after the line
___bin_HiFiLES_SOURCES = ../src/global.cpp \
and before
../src/HiFiLES.cpp -
Go to the main HiFiLES directory and run
$ automake -a --foreign -i -
To check that all went well, execute
$ ./configure_run.shfollowed by
$ make