Похожие чаты

Hey, could someone help me understand how I can link

a third party library using cmake? In my case I'm trying to link asio with my project. I found some solutions online. One is adding the library into my project as a standalone library (I like that solution but still using the snippets I found online I can't yet include asio headers). How do you do that in your projects? An example project, with a cmakelists would be very helpful

10 ответов

36 просмотров

cmake usually comes with find modules which can find third party libraries for you. After that you add a library with target_link_library() and add headers with target_include_directories()

Hayk Zneigras
do you mean find_package?

yep, i could show you how to add asio to a project i guess. Wait a sec

Hayk Zneigras
yes that would be very helpful!

can you point to me to a decent hello world example or something? i can't be bothered to write usage code D

i would prefer a pastebin

Hayk-Zneigras Автор вопроса
Hayk Zneigras
https://pastebin.com/qKTFyzNj

lol i thought you'd send me something complex which shows some basic usage, i could have included headers myself

Hayk-Zneigras Автор вопроса
Manav | avoid unnecessary messaging me
lol i thought you'd send me something complex whic...

I see, I forgot that it might still be badly linked even when the header is being included properly

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта