forked from HiFiLES/HiFiLES-solver
-
Notifications
You must be signed in to change notification settings - Fork 3
Adding Files to the Project
weiqishen edited this page May 13, 2018
·
3 revisions
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 the include folder
Place newFile.cpp in the src folder and make sure that the newFile.cpp file contains the statement
#include "../include/newInclude.h"
Open the file Makefile.am in the obj 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