-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Xcode - adding it to library #1300
Copy link
Copy link
Closed
Labels
state: needs more infothe author of the issue needs to provide more detailsthe author of the issue needs to provide more details
Description
Activity
Metadata
Metadata
Assignees
Labels
state: needs more infothe author of the issue needs to provide more detailsthe author of the issue needs to provide more details
Using XCode and Cmake for my project.

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'

Any help would be appreciated!