Added install routine to CMake and added a classic Makefile as a wrapper for easy building.
This commit is contained in:
parent
05818899fe
commit
dbd8b73134
2 changed files with 47 additions and 0 deletions
28
Makefile
Normal file
28
Makefile
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
all:
|
||||
make clean
|
||||
make fun
|
||||
make fun_test
|
||||
make test_opcodes
|
||||
|
||||
fun:
|
||||
cmake -S . -B build -DFUN_DEBUG=ON
|
||||
cmake --build build --target fun
|
||||
|
||||
fun_test:
|
||||
cmake -S . -B build -DFUN_DEBUG=ON
|
||||
cmake --build build --target fun_test
|
||||
|
||||
clean:
|
||||
cmake --build build --target clean-build
|
||||
|
||||
# Or set a custom prefix: cmake --install build --prefix "$HOME/.local"
|
||||
# Defaults:
|
||||
# Binary: /usr/bin/fun
|
||||
# Docs: /share/doc/fun/README.md, LICENSE
|
||||
# Examples: /share/fun/examples/*.fun
|
||||
install:
|
||||
cmake --install build
|
||||
|
||||
test_opcodes:
|
||||
cmake -S . -B build -DFUN_DEBUG=ON
|
||||
cmake --build build --target test_opcodes
|
||||
Loading…
Add table
Add a link
Reference in a new issue