Use mulle-sde to add to your project.
As long as your sources are using #include "include-private.h"
and your headers use #include "include.h"
, there will nothing more to do:
mulle-sde add :/
To only add the sources of with dependency sources use clib:
One common denominator is that you will likely have to add
#include </.h>
to your source files.
clib install --out src/ /
Add -isystem src/
to your CFLAGS
and compile all the
sources that were downloaded with your project. (In cmake add
include_directories( BEFORE SYSTEM src/)
to your CMakeLists.txt
file).
git submodule add -f --name "cosmopolitan" \
"https://github.com/mulle-cc/cosmopolitan/archive/refs.git" \
"stash/cosmopolitan"
git submodule add -f --name "" \
"https://github.com//" \
"stash/"
git submodule update --init --recursive
add_subdirectory( stash/)
add_subdirectory( stash/cosmopolitan)
target_link_libraries( ${PROJECT_NAME} PUBLIC )
target_link_libraries( ${PROJECT_NAME} PUBLIC cosmopolitan)
Use mulle-sde to build and install :
mulle-sde install --prefix /usr/local \
https://github.com///archive/latest.tar.gz
Download the latest tar or zip archive and unpack it.
Install **** into /usr/local
with cmake:
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_PREFIX_PATH=/usr/local \
-DCMAKE_BUILD_TYPE=Release &&
cmake --build build --config Release &&
cmake --install build --config Release
Nat! for Mulle kybernetiK