Skip to content

Test installation and integration into other projects #89

Open
@dabele

Description

@dabele

The memilio c++ libraries are intended to be included into other projects using cmake, either by installing memilio first or including it directly as a subdirectory (similar to what memilio does with its dependencies). Both ways should be tested and fixed if necessary.

Steps for integration with install:

in shell:

mkdir build && cd build
cmake .. #maybe with options
cmake --build .
cmake --install .

then in another project's CMakeList.txt:

find_package(memilio REQUIRED) #maybe check specific components?
target_link_libraries(<target> PUBLIC memilio::memilio) #also memilio::secir and other models

Steps for integration with add subdirectory:

in another project's CMakeLists.txt:

add_subdirectory('memilio/cpp')
target_link_libraries(<target> PUBLIC memilio::memilio)

or

target_link_libraries(<target> PUBLIC memilio)

Metadata

Metadata

Assignees

No one assigned

    Labels

    class::featureA feature to be implemented for some part of the softwareloc::backendThis issue concerns the C++ backend implementation.loc::continuous integrationThis issue concerns any problem of continuous integration.prio::moderateThe priority of this task is moderate.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions