Skip to content

joakimono/conan-mathgl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Download Build Status UNIX Build Status WIND

Conan.io recipe for mathgl.

The recipe generates library packages, which can be found at Bintray. The package is usually consumed using the conan install command or a conanfile.txt.

How to use this package

  1. Add remote to conan's package registry.txt:

    $ conan remote add joakimono https://api.bintray.com/conan/joakimono/conan
  2. Using conanfile.txt in your project with cmake

    Add a conanfile.txt to your project. This file describes dependencies and your configuration of choice, e.g.:

    [requires]
    mathgl/[>=2.4.4]@joakimono/stable
    
    [options]
    mathgl:shared=False
    
    [imports]
    licenses, * -> ./licenses @ folder=True
    
    [generators]
    cmake
    

    Insert into your CMakeLists.txt something like the following lines:

    cmake_minimum_required(VERSION 3.1.2)
    project(TheProject CXX)
    
    include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
    conan_basic_setup(TARGETS)
    
    add_executable(the_executor code.cpp)
    target_link_libraries(the_executor CONAN_PKG::mathgl)

    Then, do

    $ mkdir build && cd build
    $ conan install ..

    You can now continue with the usual dance with cmake commands for configuration and compilation. For details on how to use conan, please consult Conan.io docs

Package options

Option Default Domain
shared True [True, False]
lgpl True [True, False]
double_precision True [True, False]
rvalue_support False [True, False]
pthread False [True, False]
pthr_widget False [True, False]
openmp True [True, False]
opengl True [True, False]
glut False [True, False]
fltk False [True, False]
wxWidgets False [True, False]
qt5 False [True, False]
zlib True [True, False]
png True [True, False]
jpeg True [True, False]
gif False [True, False]
pdf True [True, False]
gsl False [True, False]
hdf5 False [True, False]
mpi False [True, False]
ltdl False [True, False]
all_swig False [True, False]

Known recipe issues

  • fltk, wxWidgets, qt5, glut, hdf5, ltdl, opengl will not currently be acquired with conan mechanisms, as such, the desired package(s) must be installed manually.
  • There is a future plan to make a recipe for the hdf5 dependency, there also exists a recipe in conan-transit, I believe.
  • Not all options have been exposed into to the recipe option
  • rvalue enabled does not currently compile
  • Not tested for mingw or cygwin on Windows.
  • Possible JPEG version mismatch (62 vs 80) on Windows (TBD)

About

mathgl library package for conan.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published