CMake Tutorial EP 5 | Making Libs Optional

  Рет қаралды 24,604

Code, Tech, and Tutorials

Code, Tech, and Tutorials

4 жыл бұрын

full CMake playlist: • CMake Tutorial EP 1 | ...
Thanks for coming to the channel to check out a video on Code, Tech, and Tutorials.
You can support this channel on Patreon: / codetechtuts
Please leave your feedback or questions in the comments!
src: github.com/codetechandtutoria...

Пікірлер: 13
@nerijusvilcinskas7851
@nerijusvilcinskas7851 Жыл бұрын
I watched first few parts and already I'm never coming back to simple makefiles on more serious projects, working on game engine is so much better now, compile times dropped from ~3min to few seconds, thank you!
@jinasasanapita4025
@jinasasanapita4025 3 жыл бұрын
I absolutely love the new mic! It doesn't sound like a phone recording!
@SatyaPrakash-sg5ob
@SatyaPrakash-sg5ob Жыл бұрын
I watched your series and i am comfortable in cmake!! Thanks for this amazing series
@SirWrexes
@SirWrexes Ай бұрын
16:25 Basically you want to add quotes any time ${SOME_VARIABLE} could expand to something containing spaces. Adding quotes systematically is kind of a good practice, as you make sure that this can just never happen. It is especially relevant when treating filesystem paths, as you never know if a user has downloaded your code into a directory that result in, for example, `PROJECT_SOURCE_DIR=/home/user/Code stuff/OLAS`. Any resulting command, e.g. `make -C ${PROJECT_SOURCE_DIR}/*`, could think the directory is `/home/user/Code` and then `stuff/OLAS` is part of the sources to build.
@dijkstra4678
@dijkstra4678 2 жыл бұрын
Amazing series
@raizoxxu
@raizoxxu 3 жыл бұрын
very good tutorial!
@vxanica
@vxanica Жыл бұрын
Thx, very good tutorial for me to start .
@benstanley9788
@benstanley9788 2 жыл бұрын
Regarding the quotes... It looks like cmake separates function arguments by using spaces as a delimiter. If any of the macros include spaces when expanded, this will interfere with dividing the line into words. For any macros that do not include spaces, the quotes make no difference. So in summary, you should quote anything that could possibly include a space.
@tamasboros1798
@tamasboros1798 3 жыл бұрын
I have recognized, that if I change the default value of the CMake's option command, the result will not change unless I delete the content of build folder (CMake cache files etc.). If I put the value after CMake command in the command line, everything is fine.
@CodeTechandTutorials
@CodeTechandTutorials 3 жыл бұрын
Interesting. I started using cmake on Windows after doing these tutorials and I'm noticing some pretty Stark differences. I might make the next one addressing some of those.
@AITechTalks
@AITechTalks 9 ай бұрын
Hello, Great Video! cmake must be different from normal programming languages where you would get an error with an undefined variable. For the example with turning Adder to Off the cmake lists would not actually be defined and you are using them at the end of your CMakeLists.txt file. Does that sound correct where if variables are not defined it would just blank it out?
@charlessmith1897
@charlessmith1897 2 жыл бұрын
Does anyone know what version of linux he is using?
@nickst2797
@nickst2797 4 ай бұрын
This is one of the worst tutorials u have ever seen. Buggy, convoluted and constantly re-iterating the same files.
CMake Tutorial EP 10 | Running CMake on Windows (like linux) (Over-explained)
13:48
Code, Tech, and Tutorials
Рет қаралды 35 М.
Creating CMake Libraries - That others can find and use.
26:29
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 36 МЛН
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,8 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 116 МЛН
Better CMake Part 2 -- Functions and Macros
14:47
Jefferson Amstutz
Рет қаралды 15 М.
My 2 Year Journey of Learning C, in 9 minutes
8:42
VoxelRifts
Рет қаралды 569 М.
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 328 М.
How-To Use C++ Libraries (without relying on a package manager)
30:22
Code, Tech, and Tutorials
Рет қаралды 52 М.
How I Wrote a Script that Cracks Code Automatically
16:53
Low Level Learning
Рет қаралды 67 М.
Introduction to Google Test and CMake
31:32
Rhymu's Videos
Рет қаралды 135 М.
CMake, How it Works (At Three Different Levels)
4:36
Kea Sigma Delta
Рет қаралды 9 М.
CMake Tutorial EP 2 | Libraries and Subdirectories
17:29
Code, Tech, and Tutorials
Рет қаралды 117 М.
БУДЕТ ЗНАТЬ КАК ОБИЖАТЬ БАБУШКУ
0:18
МАКАРОН
Рет қаралды 1,4 МЛН
Didiya hume wo chidiya dila do na 🦜🦜 #shorts #comedy 😜
0:34
Sikha shorts and vlogs
Рет қаралды 66 МЛН
القطة الشجاعة 😭😭🐱 #shorts
0:30
7amoda Gaming
Рет қаралды 48 МЛН
МЛАДШАЯ СЕСТРА И МОРОЖЕНОЕ ИЗ АРБУЗА
0:41
ОЛЯ ПЕРЧИК
Рет қаралды 3,5 МЛН