8000 Allow static and shared builds · Issue #78 · craigsapp/midifile · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Allow static and shared builds #78
Open
@brechtsanders

Description

@brechtsanders

Will a shared library also be supported?

If you remove the STATIC argument from add_library() in CMakeLists.txt then the user can decide to build either a static or shared library bu supplying cmake parameter -DBUILD_SHARED_LIBS:BOOL=OFF or -DBUILD_SHARED_LIBS:BOOL=ON respectively.

Note that to support building a shared library (DLL) on Windows you will need to add the necessary __declspec(dllexport) and __declspec(dllimport) stuff for exported classes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0