(MOD) Replaced project compiler from "gcc" with "clang" due to out-of-order execution keep happening after running with Array. (MOD) Removed certain functions from Utils due to insufficiencies of usage. (MOD) Defined 1 more macro "fail". (MOD) Fixed 1 bug from "var.c": Struct member "alive" was not under supervision from the entire programme cycle. (MOD) Removed 1 useless usage for "Utils_LiteraliseInteger". (MOD) Removed 1 useless block of commented code.
39 lines
884 B
CMake
39 lines
884 B
CMake
cmake_minimum_required (VERSION 3.5)
|
|
|
|
project (Compound)
|
|
|
|
set(CMAKE_C_COMPILER clang)
|
|
|
|
add_compile_options(-g -std=c99 -Wall -Wextra -D__DEBUG__)
|
|
|
|
set(SHARED_SOURCE
|
|
MemMan/src/memman.c
|
|
Status/src/status.c
|
|
Utils/src/utils.c
|
|
Var/src/var.c
|
|
catlog.c)
|
|
|
|
set(LIBCOMPOUND_SOURCE ${SHARED_SOURCE})
|
|
|
|
add_library(compound SHARED ${LIBCOMPOUND_SOURCE})
|
|
|
|
LINK_LIBRARIES(m)
|
|
|
|
# add_executable(CompoundTest test.c
|
|
# Var/src/var.c
|
|
# Status/src/status.c
|
|
# Stack/src/stack.c
|
|
# Array/src/array.c
|
|
# Utils/src/utils.c
|
|
# catlog.c
|
|
# name.c)
|
|
|
|
add_executable(CompoundTest
|
|
test.c
|
|
MemMan/src/memman.c
|
|
Status/src/status.c
|
|
Utils/src/utils.c
|
|
Array/src/array.c
|
|
Var/src/var.c
|
|
catlog.c)
|