Skip to content

myd7349/libconfuse.cmake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libconfuse.cmake

CMakeLists.txt for libconfuse

Test with 2f7d120.

Build & Install

using conan (better)

mkdir my_genimage && cd my_genimage

//to uninstall conan use: pip uninstall conan

//install conan

pip install conan --pre --user pip install conan --user --upgrade

//download test example

git clone https://github.com/libconfuse/libconfuse

//put to original libconfuse/ folder files CMakeLists.txt and config.h.in (replace) and conanfile.txt

cd libconfuse/

rm -Rf build/

conan profile detect --force

conan install . --output-folder=build --build=missing

cd build

cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release

cmake --build .

sudo checkinstall --pkgname="libconfuse" --nodoc --pkgversion="1" --default

//to remove use: dpkg -r build-libconfuse

using cmake only

mkdir my_genimage && cd my_genimage

mkdir build-libconfuse

git clone https://github.com/libconfuse/libconfuse

//put to original libconfuse/ folder files CMakeLists.txt and config.h.in (replace)

cd libconfuse/

cmake -S libconfuse/ -B build_libconfuse/ -DCMAKE_BUILD_TYPE=Release

cmake --build build_libconfuse/ --parallel

cd build_libconfuse/

sudo checkinstall

//to remove use: dpkg -r build-libconfuse

License

MIT