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.h
in theinclude
folder -
Place
newFile.cpp
in thesrc
folder and make sure that thenewFile.cpp
file contains the statement
#include "../include/newInclude.h"
-
Open the file
Makefile.am
in theobj
folder -
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.sh
followed by
$ make