Skip to content

include library headers in config file? #1

@marcopus

Description

@marcopus

Hi @mattearly and thanks for the cmake tutorials

In Ep.5 (4'20") you show how you can include the library header in OLASConfig.h.in instead of in main.cpp. Then you reverted this and went back and include the header in the main program, like so

#ifdef USE_ADDER
#include <adder.h>
#endif
Is it possible to do the other way and include library headers in the header config file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions