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:
@@ -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
|
||||
Reference in New Issue
Block a user