Creating your own project
The easiest way to start a new project is to use a simple demo as a template. This workflow creates a new project into your private folder and copies the required files to start your project.
Open a terminal and on the main SciCell++ folder execute the following script:
./tools/user/make_new_project.sh
You will be prompted for your user name and your new project name. Make sure not using white spaces or special characters.
Important
Take note of the script summary creation since you will need those information to build and execute your project.
Building and executing your project
Open a terminal and follow these instructions.
Building your project
Go to the
buildfolder in the main SciCell++ folder and type:make julio_test
Make sure to substitute
julio_testby the reportedbuilding/executable project nameby the new project creation script. It should be a combination of youruser name+your project name.The building output should be displayed at your screen. Once no errors have been reported proceed to the following step to execute your project.
Executing your project
Go to your
project folderinto yourprivatefolder and type:./bin/julio_test
Make sure to substitute
julio_testby the reportedbuilding/executable project nameby the new project creation script. It should be a combination of youruser name+your project name. UseTABfor autocomplete.Your project’s output should be displayed on your screen.
Important
As you noticed, the generation and execution of your project is performed in two different folders:
the
buildfolder (building)your
private/project_namefolder (execution)
We use this two-folders strategy to avoid cluttering
the folder structure of SciCell++ with files
automatically generated by CMake. By following this
strategy we keep a clean folder structure for SciCell++
and group all files generated by CMake in the build
folder. This help us to keep track for changes easily
since we can exclude the whole build folder from
the git repository.
Just keep in mind the following:
Whenever you want to build your project you need to do so in the
buildfolder, inthere just typemakefollowed by the name of your project.Whenever you want to execute your project go to your
private/project_namefolder and type./bin/the-name-of-your-project.