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:

  1. Place newInclude.h in the include folder

  2. Place newFile.cpp in the src folder and make sure that the newFile.cpp file contains the statement
    #include "../include/newInclude.h"

  3. Open the file Makefile.am in the obj folder

  4. 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

  5. Go to the main HiFiLES directory and run
    $ automake -a --foreign -i

  6. To check that all went well, execute
    $ ./configure_run.sh followed by
    $ make