If you can't find package, add new package in local repo
Generate New Cppkg and Add your local repository
First. Initialize cppkg
cppm cppkg init exam
Second. Edit exam.toml file
exam.toml
[package]
name = "exam"
version = "lastest" # git repo version is lastest
description = "cppkg example"
global=false # install prefix if global is false, install to $HOME/.cppm/local/
cmake = {name = {exam cmake library name}}
download = {git="{git repo}"} # or url
Third. Build exam.toml
cppm cppkg build exam
exam/
${version}/
+-- cppkg.toml # same exam.toml
+-- eaxm.cmake.in # cppkg library auto installer
Fourth. Add options in cppkg.toml and eaxm.cmake.in
exam/cppkg.toml
[package]
name = "exam"
version = "lastest" # git repo version is lastest
description = "cppkg example"
global = false
cmake = {name = {exam cmake library name}, finlib={Findlib.cmake file}}
download = {git="{git repo}"} # or url
cmake.findlib options, auto install your project 'cmake/Modules' path
Find{name}.cmake is none cmake project finder
'download_package()' is External_Project_Add wrapper
if dependency is cmake base project, you can add too simple
git repo default version is lastest
Option:
--git [-g] {repo} :add git repo
--git_tag [-t] {tag} :add git tag
--global : not cppm local install
--help [-h] :show cppm command and options
--module [-m] {module} :add module name
--p [-p] :cmake base library install to local cppkg repo, Require --url or --git
--url [-u] {url} :add url repo Require --version
--version [-v] {version} :add library version Require --version
--p [-p] :cmake base library install to local cppkg repo, Require --url or --git