Skip to content

Xcode - adding it to library  #1300

Description

@changheon1

Using XCode and Cmake for my project.
screen shot 2018-10-16 at 6 49 18 pm

I am stuck on how to get json to be added to the library.
What I want to do is:
I have my codes inside work/src/ folder and have json files inside work/vendor.
Inside build I have done the cmake commands. (cmake -G Xcode ../work)
after it builds I run my code in XCode but the
#include <nlohmann/json.hpp> is not found and I get heaps of errors in the json file.

I think this occurs because I am not adding a 'Link Binary with Libraries' for XCode but it's weird how I don't have that in 'Build Phase'
screen shot 2018-10-16 at 6 55 38 pm

Any help would be appreciated!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: needs more infothe author of the issue needs to provide more details

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions