CMake Migration

Moved the build system over to CMake. This build system right now
replicates the same functionality as our bash scripts from earlier. Will
need a lot of refactoring to be more complete, but for now we are fully
on CMake.
This commit is contained in:
2024-02-04 19:13:13 -05:00
parent 9854118958
commit cfe045acc3
6 changed files with 12 additions and 79 deletions

View File

@@ -1,23 +0,0 @@
#!/bin/bash
#
# Build script for quantum
set echo on
mkdir -p ../build/
# Get a list of all the .c files.
cFilenames=$(find . -type f -name "*.c")
assembly="quantum"
objLocation="../build/libquantum.o"
compilerFlags="-g -c -fpic"
includeFlags="-Isrc"
echo "Building $assembly..."
# First we need to compile down to .o files
gcc $cFilenames $compilerFlags -o $objLocation $includeFlags
compilerFlags="-g -shared"
gcc $objLocation $compilerFlags -o ../bin/libquantum.so $includeFlags