diff --git a/.gitignore b/.gitignore index 36fd2c2..d68dafa 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ compile .vscode/ todo vsc* +libcompound.so diff --git a/CMakeLists.txt b/CMakeLists.txt index d769cc2..b2fa4f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,16 @@ cmake_minimum_required (VERSION 3.5) project (Compound) +set(SHARED_SOURCE + 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}) + add_compile_options(-g -std=c99 -Wall -Wextra -Wformat) LINK_LIBRARIES(m) diff --git a/install b/install index e1352c0..bcb1eb4 100755 --- a/install +++ b/install @@ -36,4 +36,8 @@ done cp -v "common.h" "const.h" "platform.h"\ "name.h" "namescope.h" "type.h" "catlog.h"\ "attr.h" "registry.h" "class.h" "$DST" + +echo "Installing libcompound:" +cp -v "libcompound.so" "/usr/lib" + printf "\nDone\n"