Похожие чаты

Hello guys, you know how on windows you need

the dll to be around the same dir as the executable, well, was wondering how I can make cmake copy over the dll dependencies into that directory:

EG: I have CMAKE_PREFIX_PATH = "C:/Libs" on windows, and there is a b.dll in there that I am using, so was wondering how to copy it to my current build directory with cmake?

11 ответов

4 просмотра

You can use: PROJECT_BINARY_DIR and file(COPY ...: https://github.com/another-ghasem/learnopengl/blob/master/CMakeLists.txt#L17

you could just statically link with it, or better use install()

https://cliutils.gitlab.io/modern-cmake/chapters/install.html

@^@-^ Автор вопроса
Manav | avoid unnecessary messaging me
you could just statically link with it, or better ...

LGPL library, I thought that restricted from static linking, or was I imagining my own things?

@^@ ^
LGPL library, I thought that restricted from stati...

of if it's restricted then don't do it :D license issues are no joke

Manav | avoid unnecessary messaging me
https://cliutils.gitlab.io/modern-cmake/chapters/i...

omg i looked for a book like this for so long and eventually bought craig scott's book

Chandradeep Dey
omg i looked for a book like this for so long and ...

I gave up on CMake and use GNU Make until I feel like switching to mk

@^@-^ Автор вопроса
Ludovic 'Archivist' Lagouardette
I gave up on CMake and use GNU Make until I feel l...

😂, Guess you one of those wierdos who write nmake files for msvc? 😂

@^@-^ Автор вопроса
Ludovic 'Archivist' Lagouardette
nah, I use Visual Studio and I cry very hard

Here is some roll 🧻 😂😂, don't wet the keyboard.

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

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

коллеги, добрый вечер! А никто не знает как модальная форма может себя закрыть? Ну допустим модальная форма определила, что смысла ей работать нет и хочет вернуть modalResult...
Михаил
83
Agreed! What's the next big thing for FUNToken? Any hints? 🤔
Dennis Read
23
средствами IBX как-то можно выполнить запрос insert ... returning?
Igor
31
@everyone Hello Future! We are extremely excited to announce the hottest season ever: DeFi Summer 2024 🔥 Introducing the Stake and Burn Model: You Stake yours, we Burn...
Dennis The Menace
1
Had my LGCY in a CEX and transferred it to a pvt wallet in Dec 2021. Haven't touched it since. So, I just have to wait for the team to release the swap contract to swap to LG...
💎 Hands
23
KDSwap, a decentralized exchange (DEX) built on Kadena, is setting a new standard by working towards becoming a MiCA-compliant DEX in Europe. What sets KDSwap apart? While ...
Mal (will not DM you first) Sutton
20
объясните, я прада не понимаю. зачем в перле нужен аниивент? кому он пригодился в действительно нагруженных проектах?
nerv
30
Hey @MikeHerron wanted to check on a rumor that around 20 employees have been let go by Kadena? Even though platform emissions have been transparent from the start, some peop...
xiownthisp
14
Никто случаем не знает, как по-хорошему делается дозапись текста в edit на винапи?
The Bird of Hermes
25
Bagging more KDA. Lots of projects are affected by market conditions. So is this. When the mist clears we will see KDA as one of the leaders. Would I like this now as of...
Kenny
10
Карта сайта