Skip to content

sintef-ocean/conan-ipopt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCC Conan Clang Conan

Conan.io recipe for ipopt.

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 remotes:

    $ conan remote add sintef https://artifactory.smd.sintef.no/artifactory/api/conan/conan-local
  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]
    ipopt/[>=3.13.3]@sintef/stable
    
    [options]
    None
    
    [imports]
    licenses, * -> ./licenses @ folder=True
    
    [generators]
    cmake_paths
    cmake_find_package
    

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

    cmake_minimum_required(VERSION 3.13)
    project(TheProject CXX)
    
    include(${CMAKE_BINARY_DIR}/conan_paths.cmake)
    find_package(IPOPT MODULE REQUIRED)
    
    add_executable(the_executor code.cpp)
    target_link_libraries(the_executor IPOPT::IPOPT)

    Then, do

    $ mkdir build && cd build
    $ conan install .. -s build_type=<build_type>

    where <build_type> is e.g. Debug or Release. 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]
fPIC True [True, False]
with_hsl False [True, False]

with_hsl uses the coinhsl/[>=2014.01.17]@sintef/stable requirement. Take a look at its readme regarding HSL source, coinhsl.

Known recipe issues

  • This recipe has not been tested on Windows and is likely to fail.

About

Conan recipe for Ipopt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages