Похожие чаты

Hello there. I am trying to combine two C libraries,

which both have their own Makefile and CMakeLists.
I tried Visual Studio but I just can't merge both Makefiles into one. How can I import such a library?

5 ответов

11 просмотров

Use cmake to build each in execute_process() command, then link with the make one manually, and point the cmake one to the config dir.

A​kshit
is that a good idea?

as you wont be re-using the arguments (compiler, linker, flags and whatnot) passed to cmake

A​kshit
as you wont be re-using the arguments (compiler, l...

If the ome of the projects isn't a cmake one, well might have to build it from scratch to use it. but if it's cmake to cmake, add_subdirectory() would do the trick I would think.

Brian
If the ome of the projects isn't a cmake one, well...

im talking about the case where the library doesn't use cmake

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

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

Есть рассчет для Таллинна? https://x.com/dr_enderlin/status/1784581592003850496
Vladimir Ivanov
23
а зачем этот вопрос для удаления из чата?
Mёdkinson Medvezhkin
63
Добрый день. Хочу сделать отрисовку по команде на панели. Почему-то рисуется только при втором вызове. С чем может быть связано, не подскажете? procedure TForm1.FormDblClick(...
Kirill Filippenok
20
Any dog on Fantom ?
Bitcoin Magic
19
Добрый день Как поставить vscode из флэтпака как дефолтный редактор в filezilla?
Daniel
18
Интересно, а в чём прикол мак оси?
Лисицка
16
main.c #include <fenv.h> #include <stdio.h> int main(void) { constexpr float f = 23.0f; constexpr float g = 33.0f; fesetround(FE_TOWARDZERO); constexpr float...
mito 😼
2
Всем доброго дня! Подскажите может кто использовал связку Pagebuilder + Clientsetting. Сами параметры с типом pagebuilder в модуле Clientsetting работают нормально, можно такж...
Александр Добриков
12
using next image component with s3 image: "url" parameter is valid but upstream response is invalid code: <Image fill src={s...
Fasil
3
Tax his land, Tax his bed, Tax the table At which he's fed. Tax his work, Tax his pay, He works for peanuts Anyway! Tax his cow, Tax his goat, Tax his pants, Tax his coat....
Forge
5
Карта сайта