Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include other libraries in examples #776

Closed
Pmctst opened this issue May 10, 2024 · 1 comment
Closed

Include other libraries in examples #776

Pmctst opened this issue May 10, 2024 · 1 comment

Comments

@Pmctst
Copy link

Pmctst commented May 10, 2024

I know this is not an issue but a lack of knowledge on my side.
I have not worked with CMAKE in the past and I have no idea where to include another library. I want to make a quick sample code based on the server application including mysql library.

I don't know where I have to include the -I and -L attributes before executing cmake so make order links all the files.

@LukasWoodtli
Copy link
Contributor

You would use target_link_libraries and target_include_directories.
This is a general CMake problem and not related to Wakaama. So maybe learn some CMake basics first.
This is a concise description of CMake. But it might be a bit difficult to understand for a CMake beginner. So you might want to just start with a tutorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants