Note that this project does not require the user to smash commands in terminal. If the user have a IDE that supports CMake the executable will be found and added.
Required packages are CMake(version > 3.1)
Installation:
Ubuntu
sudo apt install cmake
Arch Linux
sudo pacman -S cmake
Other: Select a distro that floats your boat
- Locate CMakeLists.txt in root directory
CMakeLists.txt <----------------- Change here
include/
inc/
build/
run.sh
README.md
source/
- Change "exampleProjectName" to a suitable name
Example:
project(exampleProjectName LANGUAGES C)
exampleProjectName -> realProjectName
project(realProjectName LANGUAGES C)
sh run main
-
If not executable then
chmod +x run
Edit shell script for custom target to be launched
The file binary file "main" comes from source/CMakeLists.txt
"add_executable(main main.c)"
target_link_libraries(sharedLibrary INTERFACE ${MATH})