All checks were successful
CMake / build (push) Successful in 42s
- Introduce Makefile supporting build, test, install, uninstall, clean - Add variables for PREFIX and DESTDIR - Update README.md with Makefile usage instructions
825 B
825 B
passwdgen
a rudimentary random string password generator
For demo purposes only
Build
Bare Bones
mkdir build
g++ -o build/passwdgen ./passwdgen.cpp
From CMAKE
mkdir build
cd build
cmake ..
make
Then, just copy the compiled binary to somewhere on your $PATH
Testing
To run the tests:
mkdir build
cd build
cmake ..
make
ctest
or directly:
./tests/passwdgen_test
Makefile
Now supports standard targets via Makefile:
make # alias for build (Release)
make test # build + run tests
sudo make install # to /usr/local/bin, /lib, /include
make uninstall # remove installed files
make clean # rm -rf build/
Variables:
PREFIX=/opt/myprefix make installDESTDIR=/tmp/root PREFIX=/usr make install(packaging)